Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-reference.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGergely Polonkai <gergely@polonkai.eu>2013-09-23 11:17:22 +0400
committerGergely Polonkai <gergely@polonkai.eu>2013-09-23 11:17:22 +0400
commit66bca05ec7398e3f7eb69b606602b98dedac9e47 (patch)
treeb5272c67e23f69c3a0b1673a7a6c63d1b6eb28dc
parent0b2c4af8e12874412c4a0be34709a14fbb8702dd (diff)
Added remark about stashing untracked files
-rw-r--r--basic/index.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/basic/index.html b/basic/index.html
index 66eae29..8f64fa5 100644
--- a/basic/index.html
+++ b/basic/index.html
@@ -849,6 +849,12 @@ nothing to commit (working directory clean)
It will then leave you at the state of the last commit.
</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>
<b>$ git status -s</b>
<span class="red">M</span> hello.rb