I have performed git commit followed by a git push. How can I revert that change on both local and remote repositories?
$ git log
You can do an interactive rebase:
git rebase -i
This will bring up your default editor. Just delete the line containing the commit you want to remove to delete that commit.
You will, of course, need access to the remote repository to apply this change there too.
See this question: Git: removing selected commits from repository