From be5b257190d15fbd8c585fc0a7279728e846a834 Mon Sep 17 00:00:00 2001 From: fy59 Date: Mon, 9 Nov 2026 19:31:34 +0100 Subject: [PATCH] secure push --- zsh/.zshrc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index f23ce2439..6525f7181 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -150,18 +150,7 @@ gc() { read msg git commit -m "$msg" } -gp() { - local branch target - branch="$(git branch --show-current)" || return 1 - if [[ -z "$branch" ]]; then - print -u2 "Erreur : aucune branche Git active." - return 1 - fi - # URL de fetch : une destination unique, même si origin déclare plusieurs pushurl. - target="$(git remote get-url origin)" || return 1 - print -r -- "Push vers une seule destination : $target ($branch)" - git push "$target" "$branch" -} +alias gp='git push' alias gl='git log --oneline --graph --decorate' gpall() { local branch answer