How to undo the last commit from a remote git repository?
Originally Published Here ๐!
To undo the last commit from a remote git repository, you can use the git reset command.
First, you can use the,
git reset HEAD^
command. This will undo the last commit locally.
Then you can use the,
git push origin +HE...
melvingeorge-me.hashnode.dev1 min read