This question already has answers here: How do I clone a single branch in Git? (22 answers) Closed 7 years ago. Git clone will clone remote branch into local. Is there any way to clone a specific branch by myself without switching branches on the remote repository? git clone -b Example: git clone -b my-branch git@github.com:user/myproject.git With Git 1.7.10 and later, add --single-branch to pre..