mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
Revert "feat(git)!: ask for confirmation in gpf alias (#10169)"
This reverts commit c13795d4c4.
This commit is contained in:
@@ -300,13 +300,10 @@ function ggf() {
|
||||
}
|
||||
compdef _git ggf=git-checkout
|
||||
|
||||
alias 'gpf!'='git push --force'
|
||||
alias gpf!='git push --force'
|
||||
is-at-least 2.30 "$git_version" \
|
||||
&& alias gpf='read -k 1 -q "?Continue force-push? [y/N] " && echo && git push --force-with-lease --force-if-includes' \
|
||||
|| alias gpf='read -k 1 -q "?Continue force-push? [y/N] " && echo && git push --force-with-lease'
|
||||
is-at-least 2.30 "$git_version" \
|
||||
&& alias gpff='git push --force-with-lease --force-if-includes' \
|
||||
|| alias gpff='git push --force-with-lease'
|
||||
&& alias gpf='git push --force-with-lease --force-if-includes' \
|
||||
|| alias gpf='git push --force-with-lease'
|
||||
|
||||
function ggfl() {
|
||||
[[ "$#" != 1 ]] && local b="$(git_current_branch)"
|
||||
|
||||
Reference in New Issue
Block a user