Skip to content

Commit 66bca05

Browse files
Added remark about stashing untracked files
1 parent 0b2c4af commit 66bca05

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

basic/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,12 @@ <h4>
849849
It will then leave you at the state of the last commit.
850850
</p>
851851

852+
<p>If you have untracked files, <code>git stash</code> doesn't save it. You
853+
can either add stage those files with <code>git add</code> (you don't have
854+
to commit) before stashing, or, if you have a recent Git version (1.7.7 or
855+
above), you can use <code>git stash -u</code> to stash also unversioned
856+
files.</p>
857+
852858
<pre>
853859
<b>$ git status -s</b>
854860
<span class="red">M</span> hello.rb

0 commit comments

Comments
 (0)