Saturday, March 24, 2012

Git and remote branches

If you use Git as a source control system, and if you're anything like me, you might forget the commands to push a local branch to create a new remote branch on origin or to just create a remote branch from master or to delete remote branches etc..

There are a couple posts that I read periodically whenever I need to do those things as I simply don't use them enough in order to remember them unless I write scripts to do so (which I try to avoid as this obfuscates Git for other Git users).

The first one is here:
http://gitready.com/beginner/2009/02/02/push-and-delete-branches.html

and this one is very good:
http://www.zorched.net/2008/04/14/start-a-new-branch-on-your-remote-git-repository/

No comments: