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
git_revert [2019/03/13 10:40]
rpjday [SYNOPSIS]
git_revert [2019/03/13 12:49] (current)
rpjday [Reverting a range of commits]
Line 57: Line 57:
 <​code>​ <​code>​
 $ git revert -n v1.0..v1.1 $ git revert -n v1.0..v1.1
 +</​code>​
 +
 +==== Reverting one file ====
 +
 +<​code>​
 +$ git diff HEAD HEAD^ -- <​filename>​ | git apply -
 </​code>​ </​code>​
git_revert.txt ยท Last modified: 2019/03/13 12:49 by rpjday