Archive for August, 2011
Git – Push a branch to remote repository
So you just created a new branch locally. You put in 200 hours into this branch, and then realize that the only copy of all these changes is on your MacBook! Don’t get scared, just push the branch to your remote server.
It’s easy:
$> git push -u <remote-name> <branch-name>
Or, usually:
$> git push -u origin branch-name
