Answers for "cloning a specific branch from github"

5

git clone from specific branch

git clone -b branchName repoUrl
Posted by: Guest on December-07-2020
2

How do I clone a specific Git branch?

# syntax
git clone -b <branch> <remote_repo>

# Example
git clone -b my-branch [email protected]: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 https://github.com/Itseez/opencv.git
Posted by: Guest on October-09-2021
0

clone project from specific branch

git clone -b passwordless-auth [email protected]:BolajiAyodeji/nextjs-blog.git
Posted by: Guest on January-14-2022

Code answers related to "cloning a specific branch from github"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language