diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-09 19:54:04 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-09 19:54:04 -0700 |
commit | c9f11c2b3a739e3e249b9e7711bf1ed76ef3c6db (patch) | |
tree | 06ddfc72dff8e370e395a3acc692c8ab48147227 /git-revert.txt | |
parent | d0a9940c76b71c9df840a098a423d3400779d83c (diff) | |
download | git-htmldocs-c9f11c2b3a739e3e249b9e7711bf1ed76ef3c6db.tar.gz |
Autogenerated HTML docs for v2.22.0-428-g6d5b2
Diffstat (limited to 'git-revert.txt')
-rw-r--r-- | git-revert.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/git-revert.txt b/git-revert.txt index 0c82ca5bc..fae4d6654 100644 --- a/git-revert.txt +++ b/git-revert.txt @@ -26,10 +26,13 @@ effect of some earlier commits (often only a faulty one). If you want to throw away all uncommitted changes in your working directory, you should see linkgit:git-reset[1], particularly the `--hard` option. If you want to extract specific files as they were in another commit, you -should see linkgit:git-checkout[1], specifically the `git checkout -<commit> -- <filename>` syntax. Take care with these alternatives as +should see linkgit:git-restore[1], specifically the `--source` +option. Take care with these alternatives as both will discard uncommitted changes in your working directory. +See "Reset, restore and revert" in linkgit:git[1] for the differences +between the three commands. + OPTIONS ------- <commit>...:: |