Git Snippet: Revert
From Coder Merlin
Revision as of 07:00, 31 May 2019 by Chukwuemeka-tinashe (talk | contribs) (Created page with "== Revert to Tag == <syntaxhighlight lang="bash"> git checkout 1.1.1 git diff master > ~/diff.patch git checkout master cat ~/diff.patch | git apply git commit -am 'Rolled b...")
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Revert to Tag[edit]
git checkout 1.1.1
git diff master > ~/diff.patch
git checkout master
cat ~/diff.patch | git apply
git commit -am 'Rolled back to version 1.1.1'
git push origin master
Reference: (Stack Overflow)