diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-09-12 15:56:53 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-12 15:56:53 -0700 |
commit | 693e70961ac5a79a46303795f3ca6a0bfd62f375 (patch) | |
tree | 70fc25a554a7d96d42e8d233d57316d63f603c47 /git-checkout.html | |
parent | eccdd4a4b39010678cef09a1c28c964396d2cc84 (diff) | |
download | git-htmldocs-693e70961ac5a79a46303795f3ca6a0bfd62f375.tar.gz |
Autogenerated HTML docs for v1.7.12-395-g6b149
Diffstat (limited to 'git-checkout.html')
-rw-r--r-- | git-checkout.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/git-checkout.html b/git-checkout.html index ff5bb0243..3b6938579 100644 --- a/git-checkout.html +++ b/git-checkout.html @@ -1059,6 +1059,16 @@ take a file out of another commit <p>
restore hello.c from the index
</p>
+<div class="paragraph"><p>If you want to check out <em>all</em> C source files out of the index,
+you can say</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><tt>$ git checkout -- '*.c'</tt></pre>
+</div></div>
+<div class="paragraph"><p>Note the quotes around <tt>*.c</tt>. The file <tt>hello.c</tt> will also be
+checked out, even though it is no longer in the working tree,
+because the file globbing is used to match entries in the index
+(not in the working tree by the shell).</p></div>
<div class="paragraph"><p>If you have an unfortunate branch that is named <tt>hello.c</tt>, this
step would be confused as an instruction to switch to that branch.
You should instead write:</p></div>
@@ -1129,7 +1139,7 @@ $ git add frotz</tt></pre> <div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2012-09-10 16:26:53 PDT
+Last updated 2012-09-12 15:56:23 PDT
</div>
</div>
</body>
|