Git - Undo published commit
Revert changes that are already published to other repositories.
Creates a new commit with changes to undo changes of the previous commit.
git revert {{hash}}
Revert changes that are already published to other repositories.
Creates a new commit with changes to undo changes of the previous commit.
git revert {{hash}}
last update:
Reset the head of the current branch to the previous commit discarding all changes. The remote repository can be updated by force pushing: "git push -f {{remote}}".
git reset --hard {{hash}}
last update: