From f950536492c2ea3da5e568ce3c43fd1671be2043 Mon Sep 17 00:00:00 2001 From: Trevor Merritt Date: Fri, 10 Mar 2023 13:37:17 -0500 Subject: [PATCH] adds new aliases for git. - sr = submodule update --remote --init - sms = submodule foreach 'git stash' - smp = submodule foreach 'git stash pop' adds recurse option to submodule adds submodulessummary to status --- configs/git/gitconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configs/git/gitconfig b/configs/git/gitconfig index 27e759a..f9dce41 100644 --- a/configs/git/gitconfig +++ b/configs/git/gitconfig @@ -15,6 +15,10 @@ co = checkout pf = push --force-with-lease st = status + sr = submodule update --remote --init + sms = submodule foreach 'git stash' + smp = submodule foreach 'git stash pop' +# smbr = submodule foreach 'git checkout ' [core] excludesfile = ~/.gitignore autocrlf = input @@ -37,3 +41,10 @@ autoSetupRebase=always [checkout] defaultRemote=origin +[status] + submodulessummary = true +[submodule] + recurse = true + rebase = true + +