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 branch_name remote_repo_url
Example:
git clone -b my-branch git@github.com:user/myproject.git
With Git 1.7.10 and later, add --single-branch to prevent fetching of all branches. Example, with OpenCV 2.4 branch:
git clone -b opencv-2.4 --single-branch [ Ссылка ]
Courtesy- [ Ссылка ]
Git clone a branch, not master
How do I clone a single branch in Git?
git - Cloning specific branch
How to clone git repository with specific revision
how to clone a branch in github
git clone --branch to folder
git clone only one branch without history
git checkout specific branch
git pull specific branch from remote
git clone specific tag
git clone all branches
git clone to specific folder
How do I clone a specific Git branch
Теги
Git Clone Branchgit cloneclone a specific branchclone a branch gitgit pull a branchgit clone a branchHow To Clone a Git RepositoryGit clone a branchHow do I clone a single branch in Git?git - Cloning specific branchHow to clone all remote branches in Git -git clone all branchesgit clone local repositorygit checkout specific branchhow to clone a specific branch gitclone a specific branch gitclone a specific branch git windows