Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

git revert last 2 commits

$ git revert --no-commit D
$ git revert --no-commit C
$ git revert --no-commit B
$ git commit -m "the commit message"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #git #revert #commits
ADD COMMENT
Topic
Name
5+4 =