@git / git-reference / commits / 66bca05

Added remark about stashing untracked files

Gergely Polonkai committed Sep 23, 2013 at 09:17 UTC 66bca05ec7398e3f7eb69b606602b98dedac9e47
1 file changed +6
basic/index.html
+6
@@ -849,6 +849,12 @@ nothing to commit (working directory clean)
849 It will then leave you at the state of the last commit.
850 </p>
851
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 +
858 <pre>
859 <b>$ git status -s</b>
860 <span class="red">M</span> hello.rb