Download:
child 68:c90c3504fbb3
parent 66:584e8e0b08ee
67:0a7e0a69a670
Anton Shestakov <engored@ya.ru>, Sun, 21 Dec 2014 17:15:55 +0800
git prompt session: demonstrate stash

1 файлов изменено, 2 вставок(+), 1 удалений(-) [+]
docs/prompt-session-git.sh file | annotate | diff | comparison | revisions
--- a/docs/prompt-session-git.sh Sun Dec 21 16:46:36 2014 +0800
+++ b/docs/prompt-session-git.sh Sun Dec 21 17:15:55 2014 +0800
@@ -6,7 +6,8 @@
git add foo
git commit -q -m 'a'
echo 'b' >> foo
-git commit -q -a -m 'b'
+git stash -q
+git stash pop -q && git commit -q -a -m 'b'
git checkout -q HEAD@{1}
git checkout -q -b secret
echo 's' >> foo && git commit -q -a -m 's'