Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git checkout to previous commit

# git: checkout to previous commit

git checkout HEAD~X # x number of commits to go back

# Go back one commit:
git checkout HEAD~1
 
PREVIOUS NEXT
Tagged: #git #checkout #previous #commit
ADD COMMENT
Topic
Name
3+4 =