EN
Git - revert last commit
10
points
In this short article we would like to show how to revert last commit in Git.
Quick solution:
git reset --soft HEAD~1
Troubleshooting
Often it is necessary to push branch with force to override remote changes.
We can do it using the below command:
git push force