Skip to content

Commit 9cdec2f

Browse files
author
Matthew McCullough
committed
Merge pull request #69 from gergelypolonkai/gh-pages
Added remark about stashing untracked files
2 parents 0b2c4af + 1b504ac commit 9cdec2f

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

0 commit comments

Comments
 (0)