How to configure git repository so a branch other than master is checked out after a cloning?
- by Suraj Barkale
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.