This is a small tool to help out with frequent work with extra branches.
It essentially mirrors the git push --set-upstream origin $current_branch
.
There's not much to it then that.
Install via with the Go toolchain to compile from source:
go get github.com/wyattjoh/git-publish
Download pre-compiled binary on the Releases Page for your Arch/OS.
brew install wyattjoh/stable/git-publish
git checkout -b some-branch
# do some work... commit it
# instead of doing `git push -u origin some-branch`, do:
git publish
You may specify another remote with git publish <remote name>
, the default
however is origin
.