Translate

Friday, September 2, 2016

GIT: How to delete last commit?



To undo or delete a commit previously done, just type the following command in your console:


git reset --hard HEAD~1

No comments:

Post a Comment