From 4f32cdbb3681488b9f9215e253a5754800ebaab8 Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Wed, 7 Jul 2021 22:51:12 -0400 Subject: Publish to origin by default. I haven't worked with a private fork in years. --- bin/git-publish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/git-publish b/bin/git-publish index c545825..0016764 100755 --- a/bin/git-publish +++ b/bin/git-publish @@ -2,9 +2,9 @@ # Copy your current branch to a "publishing" remote. # -# By default, this remote is the remote matching your local username. However, -# you can set `publish.remote` to publish to another repository (eg. origin). +# By default, this remote is origin. However, you can set `publish.remote` to +# publish to another repository (eg. my-fork). -REMOTE="$(git config publish.remote || echo "${USER}")" +REMOTE="$(git config publish.remote || echo "origin")" exec git push --force-with-lease "$@" "${REMOTE}" HEAD -- cgit v1.2.3