Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git go back to specific commit

// The '.' is needed to attached HEAD!
$ git checkout <commit_id> .
$ git add .
$ git commit -m "go back to <commit-id>"
$ git push
// checkout source for full details!
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #git #specific #commit
ADD COMMENT
Topic
Name
6+3 =