Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| git_revert [2019/03/13 10:21] – [Reverting a range of commits] rpjday | git_revert [2019/03/13 12:49] (current) – [Reverting a range of commits] rpjday | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| git revert --quit | git revert --quit | ||
| git revert --abort | git revert --abort | ||
| + | </ | ||
| + | |||
| + | ===== DESCRIPTION ===== | ||
| + | |||
| + | Note carefully //lack of traversal//: | ||
| + | |||
| + | < | ||
| + | < | ||
| + | Commits to revert. For a more complete list of ways to | ||
| + | spell commit names, see gitrevisions(7). Sets of commits | ||
| + | can also be given but no traversal is done by default, see | ||
| + | git-rev-list(1) and its --no-walk option. | ||
| </ | </ | ||
| Line 45: | Line 57: | ||
| < | < | ||
| $ git revert -n v1.0..v1.1 | $ git revert -n v1.0..v1.1 | ||
| + | </ | ||
| + | |||
| + | ==== Reverting one file ==== | ||
| + | |||
| + | < | ||
| + | $ git diff HEAD HEAD^ -- < | ||
| </ | </ | ||