From 98ea65db814f26e2e16002f2a00fd308711ec6fb Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 29 Nov 2022 10:19:13 -0700 Subject: git-push-all: update and improve docs --- bin/git-push-all | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'bin/git-push-all') diff --git a/bin/git-push-all b/bin/git-push-all index cdab5bf0..7c6cddfb 100755 --- a/bin/git-push-all +++ b/bin/git-push-all @@ -22,14 +22,15 @@ # # 1. If branch.pushRemote is set, push it there # -# 2. Otherwise, if remote.pushDefault is set, push it there +# 2. Otherwise, if remote.pushDefault is set and a branch of the same name +# already exists on that remote, push it there # -# 3. Otherwise, if it is tracking a remote branch, push it there +# 3. Otherwise, if it is tracking a remote branch that exists, push it there # -# 4. Otherwise, exit non-zero. +# 4. Otherwise, emit a warning and skip over that branch. # -# If a branch is tracking a remote that you cannot push to, be sure to -# set at least one of branch.pushRemote and remote.pushDefault. +# If a branch is tracking a remote that you cannot push to, be sure to set at +# least one of branch.pushRemote and remote.pushDefault, to avoid errors. # Enhancement: --confirm to show what will be pushed to where, and ask # for confirmation: 'branch -> remote#target' -- cgit v1.2.3