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
git reset HEAD~1 if you don't want your changes to be gone(unstaged changes). Change, commit and push again git push -f [origin] [branch]
git reset HEAD~1
git push -f [origin] [branch]