}

Articles tagged "git-reset"

2 min readBeginner

Different ways to revert git repository commit

To undo last commit not pushed try: git reset --soft HEAD~1. To undo last commit pushed use: git revert HEAD~1. Check this tutorial for more examples!