From 7ab5a451a8e3a1d4df660c34203f3c9c77c2187b Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Mon, 19 Feb 2018 10:44:25 +0100 Subject: [PATCH] fix gpr and define gprs to update submods --- plugins/git2/git2.plugin.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/git2/git2.plugin.zsh b/plugins/git2/git2.plugin.zsh index 741630181..75de883bd 100644 --- a/plugins/git2/git2.plugin.zsh +++ b/plugins/git2/git2.plugin.zsh @@ -36,7 +36,8 @@ compdef _git gdv=git-diff alias gp='git pull' compdef _git gl=git-pull # Git pull and rebase -alias gpr='git pull --rebase --recurse-submodules' +alias gpr='git pull --rebase' +alias gprs='git pull --rebase && git submodule update --remote' compdef _git gpr=git-pull # Git rebase current master branch against master branch on upstream alias gprum='git pull --rebase --recurse-submodules upstream master'