how to revert a commit in git after push bitbucket code example Example: bitbucket how to undo commit git reset --soft <commit hash, example: 52f823c> git push -f