I ran into a situation when I wrongly pushed a couple of commits onto a remote repository.
Hence I need to remove those commits.
The commit “7f6d21” was about 6 commits back in my git log.
Force push that commit as the new master:
git push origin +7f6d21:master