Last Updated: February 25, 2016
·
516
· grodzik

Publish and un-publish easily

You can easily push local branch to the remote repo and set it in config to easily push/pull it later with this https://gist.github.com/3518700 alias.

git publish
git publish one-of-my-branches-to-be-pushed-to-remote-repo

This will push branch provided as an argument or use current branch if none provided in argument.
In similar way we can achieve unpublishing branch by removing it from remote repo and from config. Alias for it is here: https://gist.github.com/3518769

git unpublish
git unpublish one-of-my-branches-to-be-removed-from-remote-repo