summaryrefslogtreecommitdiff
path: root/.gitconfig
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-09-12 14:31:18 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-09-12 15:29:51 -0700
commita64452ed4f4427d0eca8e8a98877ecc7870ae620 (patch)
tree2307de0a723a78f1e02a0b601fbffad529c8914b /.gitconfig
parentf5310d65cd229c081cc52b419971fbf51b838f7a (diff)
downloaddotfiles-a64452ed4f4427d0eca8e8a98877ecc7870ae620.tar.gz
add 'git sco' alias
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index 15df2697..33416a09 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -18,6 +18,7 @@
v = log --graph --full-history -n 30 --decorate --oneline --branches --all
ov = log --graph --full-history -n 30 --decorate --oneline --branches --all --simplify-by-decoration
co = checkout
+ sco = "!f() { git stash && git checkout \"$@\"; git stash pop; }; f"
# # "git exec blah" runs blah from the root of the worktree since shell
# # alias are always run from the root of the worktree