I have a master and a development branch, both pushed to GitHub. I\'ve cloned, pulled, and fetched, but I re
Use my tool git_remote_branch (you need Ruby installed on your machine). It's built specifically to make remote branch manipulations dead easy.
Each time it does an operation on your behalf, it prints it in red at the console. Over time, they finally stick into your brain :-)
If you don't want grb to run commands on your behalf, just use the 'explain' feature. The commands will be printed to your console instead of executed for you.
Finally, all commands have aliases, to make memorization easier.
Note that this is alpha software ;-)
Here's the help when you run grb help:
git_remote_branch version 0.2.6
Usage:
grb create branch_name [origin_server]
grb publish branch_name [origin_server]
grb rename branch_name [origin_server]
grb delete branch_name [origin_server]
grb track branch_name [origin_server]
Notes:
- If origin_server is not specified, the name 'origin' is assumed
(git's default)
- The rename functionality renames the current branch
The explain meta-command: you can also prepend any command with the
keyword 'explain'. Instead of executing the command, git_remote_branch
will simply output the list of commands you need to run to accomplish
that goal.
Example:
grb explain create
grb explain create my_branch github
All commands also have aliases:
create: create, new
delete: delete, destroy, kill, remove, rm
publish: publish, remotize
rename: rename, rn, mv, move
track: track, follow, grab, fetch