Git snapshot: take a snapshot and stash it without messing with your working tree

This commit is contained in:
Yan Pritzker 2013-09-17 22:38:51 -05:00
parent a672e64e36
commit 5b850667cd

View File

@ -16,6 +16,10 @@
a = add # add a = add # add
chunkyadd = add --patch # stage commits chunk by chunk chunkyadd = add --patch # stage commits chunk by chunk
# via http://blog.apiaxle.com/post/handy-git-tips-to-stop-you-getting-fired/
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}"
snapshots = !git stash list --grep snapshot
# branch # branch
b = branch -v # branch (verbose) b = branch -v # branch (verbose)
@ -111,6 +115,7 @@
# Git diff will use (i)ndex, (w)ork tree, (c)ommit and (o)bject # Git diff will use (i)ndex, (w)ork tree, (c)ommit and (o)bject
# instead of a/b/c/d as prefixes for patches # instead of a/b/c/d as prefixes for patches
mnemonicprefix = true mnemonicprefix = true
algorithm = patience
[rerere] [rerere]
# Remember my merges # Remember my merges
# http://gitfu.wordpress.com/2008/04/20/git-rerere-rereremember-what-you-did-last-time/ # http://gitfu.wordpress.com/2008/04/20/git-rerere-rereremember-what-you-did-last-time/