Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to move to previous commit in git

git checkout <commit-id> .
git add .
git commit -m "Reverting to <commit-id>"
git push
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #move #previous #commit #git
ADD COMMENT
Topic
Name
7+3 =