User Tools

Site Tools


git_revert

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
git_revert [2019/03/13 10:01]
rpjday [Reverting a single commit]
git_revert [2019/03/13 10:21]
rpjday [Reverting a range of commits]
Line 35: Line 35:
 ==== Reverting a range of commits ==== ==== Reverting a range of commits ====
  
-Revert commits individually:​+Revert commits individually ​(revert ''​v1.0''​ (not included) up to and //​including//​ ''​v1.1''​):
  
 <​code>​ <​code>​
-$ git revert v1.0 v1.1+$ git revert v1.0..v1.1
 </​code>​ </​code>​
  
Line 44: Line 44:
  
 <​code>​ <​code>​
-$ git revert -n v1.0 v1.1+$ git revert -n v1.0..v1.1
 </​code>​ </​code>​
git_revert.txt ยท Last modified: 2019/03/13 12:49 by rpjday