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.
This commit is contained in:
parent
753778c632
commit
d5ae3dbfc8
4
config
4
config
@ -31,8 +31,8 @@
|
|||||||
delete = branch -D
|
delete = branch -D
|
||||||
refname = rev-parse --abbrev-ref HEAD
|
refname = rev-parse --abbrev-ref HEAD
|
||||||
|
|
||||||
publish = !git push -u origin `git refname`
|
publish = !git push -u `git config --get publish.remote || echo origin` `git refname`
|
||||||
unpublish = !git push -u origin :`git refname`
|
unpublish = !git push -u `git config --get publish.remote || echo origin` :`git refname`
|
||||||
force = push --force-with-lease
|
force = push --force-with-lease
|
||||||
|
|
||||||
changes = !sh -c 'git log --oneline $1..' --
|
changes = !sh -c 'git log --oneline $1..' --
|
||||||
|
Loading…
x
Reference in New Issue
Block a user