From afb466c87131cfb6606836fde06e06246a6e1d81 Mon Sep 17 00:00:00 2001 From: hidekuro Date: Mon, 17 May 2021 13:51:27 +0900 Subject: [PATCH 1/2] update gSu Safe for branches not named "master". And with this method, we can add any remote and branch name after it such as "origin master" or "upstream main". --- modules/git/alias.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index 95b2a0d475..740e50e077 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -253,7 +253,7 @@ if ! zstyle -t ':prezto:module:git:alias' skip 'yes'; then alias gSl='git submodule status' alias gSm='git-submodule-move' alias gSs='git submodule sync' - alias gSu='git submodule foreach git pull origin master' + alias gSu='git submodule foreach git pull' alias gSx='git-submodule-remove' # Tag (t) From b3b7e0f2ce210a3fd0780f9e7324ef61987512e4 Mon Sep 17 00:00:00 2001 From: hidekuro Date: Mon, 17 May 2021 17:44:02 +0900 Subject: [PATCH 2/2] improve gSu Change method to `update` instead of `foreach`. --- modules/git/alias.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index 740e50e077..b9c852db2e 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -253,7 +253,7 @@ if ! zstyle -t ':prezto:module:git:alias' skip 'yes'; then alias gSl='git submodule status' alias gSm='git-submodule-move' alias gSs='git submodule sync' - alias gSu='git submodule foreach git pull' + alias gSu='git submodule update --remote --recursive' alias gSx='git-submodule-remove' # Tag (t)