Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to revert the last 2 commits in git

git revert --no-commit HEAD~3..
git commit -m "your message regarding reverting the multiple commits"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #revert #commits #git
ADD COMMENT
Topic
Name
4+5 =