Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git reset to commit

# reset to specefic commit
git reset --hard <commit id>

# to go back one step 
git reset --hard HEAD~1

# note: use --soft to keep file changes
 
PREVIOUS NEXT
Tagged: #git #reset #commit
ADD COMMENT
Topic
Name
4+8 =