From e32ff6485381f033141d4b5365515a94f0109ec5 Mon Sep 17 00:00:00 2001 From: wendygwo Date: Tue, 6 Nov 2018 22:10:53 -0800 Subject: [PATCH] Add detail for how to tell git to track new files (#21819) --- guide/english/git/git-stash/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guide/english/git/git-stash/index.md b/guide/english/git/git-stash/index.md index f185ac2748..f6f24bf7c2 100644 --- a/guide/english/git/git-stash/index.md +++ b/guide/english/git/git-stash/index.md @@ -16,7 +16,11 @@ git stash save "optional message for yourself" This saves your changes and reverts the working directory to what it looked like for the latest commit. Stashed changes are available from any branch in that repository. -Note that changes you want to stash need to be on tracked files. If you created a new file and try to stash your changes, you may get the error `No local changes to save`. +Note that changes you want to stash need to be on tracked files. If you created a new file and try to stash your changes, you may get the error `No local changes to save`. To tell git to track a new file you created, run the command: + +```shell +git add +``` ### View Stashed Changes To see what is in your stash, run the command: