I have performed git commit followed by a git push. How can I revert that change on both local and remote repositories?
git commit
git push
$ git log
Try using
git reset --hard
Please Note : Here commit id will the id of the commit you want to go to but not the id you want to reset. this was the only point where i also got stucked.
then push
git push -f