doc: mention "git stash" in HACKING
authorAssaf Gordon <assafgordon@gmail.com>
Fri, 14 Dec 2012 07:47:17 +0000 (08:47 +0100)
committerBernhard Voelker <mail@bernhard-voelker.de>
Fri, 14 Dec 2012 23:20:15 +0000 (00:20 +0100)
* HACKING: In the paragraph about switching branches, mention
"git stash" as a way to continue while preserving uncommitted
changes.

HACKING

diff --git a/HACKING b/HACKING
index f3f961a..adc305f 100644 (file)
--- a/HACKING
+++ b/HACKING
@@ -120,6 +120,8 @@ Note 2:
     sometimes the checkout will fail, telling you that your local
     modifications conflict with changes required to switch branches.
     However, in any case, you will *not* lose your uncommitted changes.
+    Run "git stash" to temporarily hide uncommitted changes in your
+    local directory, restoring a clean working directory.
 
 Anyhow, get back onto your just-created branch: