I am trying to pull from a repository in Github. But I don\'t want to clone the master branch. I want to clone some other branch. When I try git clone
,
If you already cloned the repo and want to contribute to the branch other than master, do this:
$ git checkout --track origin/
Of course, be sure to specify the right name of the remote (origin in the example above)
This command will create a new local branch that will track a particular remote branch.