From d5ae3dbfc885972d2715395853b01e7419323a44 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 15 Dec 2022 11:50:46 +0000 Subject: [PATCH] Make (un)publish alias remote configurable Add the `publish.remote` option to enable the remote to publish to configurable rather than hard-coded in the alias. --- config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config b/config index 03060eb..11efcfd 100644 --- a/config +++ b/config @@ -31,8 +31,8 @@ delete = branch -D refname = rev-parse --abbrev-ref HEAD - publish = !git push -u origin `git refname` - unpublish = !git push -u origin :`git refname` + publish = !git push -u `git config --get publish.remote || echo origin` `git refname` + unpublish = !git push -u `git config --get publish.remote || echo origin` :`git refname` force = push --force-with-lease changes = !sh -c 'git log --oneline $1..' --