From 39525e5ec36052a83fadd47f377a26d33df851bd Mon Sep 17 00:00:00 2001 From: Taehyun Hwang Date: Sun, 29 Jan 2023 02:45:23 +0900 Subject: [PATCH] feat(git): add `gpsupf` alias (#11268) --- plugins/git/README.md | 1 + plugins/git/git.plugin.zsh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/git/README.md b/plugins/git/README.md index d455e0eff..d5eaaa53f 100644 --- a/plugins/git/README.md +++ b/plugins/git/README.md @@ -89,6 +89,7 @@ plugins=(... git) | ggsup | git branch --set-upstream-to=origin/$(git_current_branch) | | ggu | git pull --rebase origin $(current_branch) | | gpsup | git push --set-upstream origin $(git_current_branch) | +| gpsupf | git push --set-upstream origin $(git_current_branch) --force-with-lease | | ghh | git help | | gignore | git update-index --assume-unchanged | | gignored | git ls-files -v \| grep "^[[:lower:]]" | diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 7544ca440..fc2c08ccd 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -199,6 +199,7 @@ alias ggpush='git push origin "$(git_current_branch)"' alias ggsup='git branch --set-upstream-to=origin/$(git_current_branch)' alias gpsup='git push --set-upstream origin $(git_current_branch)' +alias gpsupf='git push --set-upstream origin $(git_current_branch) --force-with-lease' alias ghh='git help' @@ -341,4 +342,4 @@ function grename() { fi } -unset git_version \ No newline at end of file +unset git_version