Create Remote Branche with git
I was lead down some interesting paths figuring out this simple flow. So I thought I’d post it to save some time…and hopefully someone else’s.
Also, here’s a nice cheetsheet: http://cheat.errtheblog.com/s/git
# Sets up a local branch
git branch my_test
# Creates the remote branch
git push origin my_test
# Deletes a remote branch
git push origin :my_test
# Delete branch locally
git branch -d my_test
UPDATE: (5/27/2009)
Get a remote branch that exists on the server but not locally (tracking is set by default)
git checkout -b my_test_prod origin/my_test_prod