Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git checkout previous commit HEAD

git checkout <commit_id>
git checkout -b <new branch> <commit_id>
git checkout HEAD~X // x is the number of commits to go back
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #checkout #previous #commit #HEAD
ADD COMMENT
Topic
Name
3+7 =