summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0eb4f7c)
raw | patch | inline | side by side (parent: 0eb4f7c)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 3 Aug 2007 22:22:59 +0000 (15:22 -0700) | ||
committer | J. Bruce Fields <bfields@pig.linuxdev.us.dell.com> | |
Sun, 5 Aug 2007 21:45:47 +0000 (17:45 -0400) |
Mention the git-stash command as a way to temporarily set aside work in
progress.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
progress.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Documentation/user-manual.txt | patch | blob | history |
index c0820e9036c74f81217766f337cf1425f1129c2d..9efe85ce2fa3f932320244041ac1e0e818d1837e 100644 (file)
which will display the given version of the file.
+[[interrupted-work]]
+Temporarily setting aside work in progress
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+While you are in the middle of working on something complicated, you
+find an unrelated but obvious and trivial bug. You would like to fix it
+before continuing. You can use gitlink:git-stash[1] to save the current
+state of your work, and after fixing the bug (or, optionally after doing
+so on a different branch and then coming back), unstash the
+work-in-progress changes.
+
+------------------------------------------------
+$ git stash "work in progress for foo feature"
+------------------------------------------------
+
+This command will save your changes away to the `stash`, and
+reset your working tree and the index to match the tip of your
+current branch. Then you can make your fix as usual.
+
+------------------------------------------------
+... edit and test ...
+$ git commit -a -m "blorpl: typofix"
+------------------------------------------------
+
+After that, you can go back to what you were working on with
+`git stash apply`:
+
+------------------------------------------------
+$ git stash apply
+------------------------------------------------
+
+
[[ensuring-good-performance]]
Ensuring good performance
-------------------------