diff options
author | Junio C Hamano <junio@hera.kernel.org> | 2008-08-21 00:27:40 +0000 |
---|---|---|
committer | Junio C Hamano <junio@hera.kernel.org> | 2008-08-21 00:27:40 +0000 |
commit | 3580ad240fadb5ab479fd96c65350ec2b77c33bd (patch) | |
tree | f6ceaaa501ef207dc15037f49fc093e6d8c8b0c7 /git-revert.html | |
parent | 5cf43cab94d19dce9d3c883f374e254c7b2572e1 (diff) | |
download | git-htmldocs-3580ad240fadb5ab479fd96c65350ec2b77c33bd.tar.gz |
Autogenerated HTML docs for v1.6.0-49-gea35
Diffstat (limited to 'git-revert.html')
-rw-r--r-- | git-revert.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/git-revert.html b/git-revert.html index 1c1588c59..343f5424f 100644 --- a/git-revert.html +++ b/git-revert.html @@ -327,6 +327,14 @@ git-revert(1) Manual Page <div class="para"><p>Given one existing commit, revert the change the patch introduces, and record a
new commit that records it. This requires your working tree to be clean (no
modifications from the HEAD commit).</p></div>
+<div class="para"><p>Note: <em>git revert</em> is used to record a new commit to reverse the
+effect of an earlier commit (often a faulty one). If you want to
+throw away all uncommitted changes in your working directory, you
+should see <a href="git-reset.html">git-reset(1)</a>, particularly the <em>--hard</em> option. If
+you want to extract specific files as they were in another commit, you
+should see <a href="git-checkout.html">git-checkout(1)</a>, specifically the <em>git checkout
+<commit> — <filename></em> syntax. Take care with these alternatives as
+both will discard uncommitted changes in your working directory.</p></div>
</div>
<h2 id="_options">OPTIONS</h2>
<div class="sectionbody">
@@ -425,7 +433,7 @@ effect to your index in a row.</p></div> </div>
<div id="footer">
<div id="footer-text">
-Last updated 2008-07-22 09:19:16 UTC
+Last updated 2008-08-21 00:27:25 UTC
</div>
</div>
</body>
|