How to configure git repository so a branch other than master is checked out after a cloning?

Posted by Suraj Barkale on Stack Overflow See other posts from Stack Overflow or by Suraj Barkale
Published on 2010-05-21T04:54:43Z Indexed on 2010/05/21 5:00 UTC
Read the original article Hit count: 273

Filed under:

I am trying to set up a git server with bunch of repositories. I am planning to use the branching model described in http://nvie.com/git-model article. So I will have at least two branches (named master and develop) in the repository.

After a clone the master branch is checked out by git. Is there a git config option so that develop branch will be checked out instead?

In effect I want git clone my_repo_url to behave as git clone -b develop my_repo_url.

© Stack Overflow or respective owner

Related posts about git