From 66bca05ec7398e3f7eb69b606602b98dedac9e47 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Mon, 23 Sep 2013 09:17:22 +0200 Subject: [PATCH] Added remark about stashing untracked files --- basic/index.html | 6 ++++++ 1 file changed, 6 insertions(+) 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.

+

If you have untracked files, git stash doesn't save it. You + can either add stage those files with git add (you don't have + to commit) before stashing, or, if you have a recent Git version (1.7.7 or + above), you can use git stash -u to stash also unversioned + files.

+
 $ git status -s
 M hello.rb