Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

uncommit the last commit

git reset --soft HEAD^

git reset HEAD^
//And if you actually want to completely undo it, throwing away all uncommitted changes, resetting everything to the previous commit (as the original question asked):

git reset --hard HEAD^
Source by www.codeleaks.io #
 
PREVIOUS NEXT
Tagged: #uncommit #commit
ADD COMMENT
Topic
Name
9+4 =