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 ,
git clone
Try this:
git init git fetch url-to-repo branchname:refs/remotes/origin/branchname
EDIT
A better solution:
git clone -b mybranch --single-branch git://sub.domain.com/repo.git