summaryrefslogtreecommitdiff
path: root/bin/git-push-all
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-11-29 10:19:13 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-11-30 14:20:59 -0700
commit98ea65db814f26e2e16002f2a00fd308711ec6fb (patch)
tree7639313c30edb198560e5b1a066e46df6ab921bc /bin/git-push-all
parent2ac03e55e88021d8daa2ec37cc37b79514a5f0f7 (diff)
downloaddotfiles-98ea65db814f26e2e16002f2a00fd308711ec6fb.tar.gz
git-push-all: update and improve docs
Diffstat (limited to 'bin/git-push-all')
-rwxr-xr-xbin/git-push-all11
1 files changed, 6 insertions, 5 deletions
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'