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:
xxxxxxxxxx
1
git reset --soft HEAD~1
Often it is necessary to push branch with force to override remote changes.
We can do it using the below command:
xxxxxxxxxx
1
git push force