From a64452ed4f4427d0eca8e8a98877ecc7870ae620 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 12 Sep 2022 14:31:18 -0700 Subject: add 'git sco' alias --- .gitconfig | 1 + 1 file changed, 1 insertion(+) (limited to '.gitconfig') 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 -- cgit v1.2.3