1
0

Added remark about stashing untracked files

This commit is contained in:
Gergely Polonkai 2013-09-23 09:17:22 +02:00
parent 0b2c4af8e1
commit 66bca05ec7

View File

@ -849,6 +849,12 @@ nothing to commit (working directory clean)
It will then leave you at the state of the last commit. It will then leave you at the state of the last commit.
</p> </p>
<p>If you have untracked files, <code>git stash</code> doesn't save it. You
can either add stage those files with <code>git add</code> (you don't have
to commit) before stashing, or, if you have a recent Git version (1.7.7 or
above), you can use <code>git stash -u</code> to stash also unversioned
files.</p>
<pre> <pre>
<b>$ git status -s</b> <b>$ git status -s</b>
<span class="red">M</span> hello.rb <span class="red">M</span> hello.rb