diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2021-07-07 22:51:12 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2021-07-07 22:51:12 -0400 |
| commit | 4f32cdbb3681488b9f9215e253a5754800ebaab8 (patch) | |
| tree | 7c347487cae760190b24fab391a02dd277377e2f | |
| parent | 0b959449af980411496179ee1066b6b83a7e1a1e (diff) | |
Publish to origin by default.
I haven't worked with a private fork in years.
| -rwxr-xr-x | bin/git-publish | 6 |
1 files 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 |
