Skip to content

Instantly share code, notes, and snippets.

@rfletcher
Created January 19, 2011 01:06
Show Gist options
  • Save rfletcher/785488 to your computer and use it in GitHub Desktop.
Save rfletcher/785488 to your computer and use it in GitHub Desktop.
$ git rb explain publish
git_remote_branch version 0.3.0
List of operations to do to publish an exiting local branch:
git push origin branch_to_publish:refs/heads/branch_to_publish
git fetch origin
git config branch.branch_to_publish.remote origin
git config branch.branch_to_publish.merge refs/heads/branch_to_publish
git checkout branch_to_publish
$ git rb explain track
git_remote_branch version 0.3.0
List of operations to do to track an existing remote branch:
git fetch origin
git branch --track branch_to_track origin/branch_to_track
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment