Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

github git revert to old 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: #github #git #revert #commit
ADD COMMENT
Topic
Name
4+5 =