Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git undo commit

# Uncommit the changes
git reset --soft HEAD~1

# Completely delete the changes
git reset --hard HEAD~1
 
PREVIOUS NEXT
Tagged: #git #undo #commit
ADD COMMENT
Topic
Name
1+6 =