Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

How do I clone a specific Git branch?

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

# 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 https://github.com/Itseez/opencv.git
Comment

how do i clone a specific branch in git

git clone -b <your_branchname> <your_git-remote-repo>
Comment

specific branch clone git

git clone -b <branch> <remote_repo>
git clone -b my-branch git@github.com:user/myproject.git
Comment

git clone specific branch

git clone --single-branch --branch <branchname> <remote-repo>

# eg
git clone -b opencv-2.4 --single-branch https://github.com/Itseez/opencv.git
Comment

how to git clone from a specific branch git

git clone --single-branch --branch master https://github.com/career-karma-tutorials/ck-git
Comment

clone specific branch git

clone specefic branch in git
git clone --single-branch --branch <branchname> <remote-repo>
Comment

clone specific branch git

clone specefic branch in git
git clone --single-branch --branch <branchname> <remote-repo>
Comment

git clone single branch

# clone only the remote primary HEAD (default: origin/master)
git clone <url> --single-branch

# as in:
git clone <url> --branch <branch> --single-branch [<folder>]
Comment

git clone single branch

git clone --single-branch --branch start git@github.com:colbyfayock/my-github-actions.git
Comment

clone branch git

git clone <repository_url>
git branch -a
git checkout <branch_name>
Comment

how to git clone a branch github

git clone -b opencv-2.4 --single-branch https://github.com/Itseez/opencv.git
Comment

how to git clone a specific branch

# Using gh CLI

gh repo clone <username>/<reponame> -- -b <branchname>
Comment

PREVIOUS NEXT
Code Example
Shell :: list active services ubuntu 
Shell :: yarn install in ubuntu 
Shell :: composer tree 
Shell :: sudo apt install net tools 
Shell :: choco install python 
Shell :: install ext-soap 
Shell :: set defualt branch to main git 
Shell :: conda install cufflinks 
Shell :: gpg generate key 
Shell :: extract numners from string linux 
Shell :: powershell wait 5 seconds 
Shell :: ssh key pair for github 
Shell :: cmd windows download file 
Shell :: angular cli linux 
Shell :: ubuntu cron job log 
Shell :: apache basic auth setup 
Shell :: git create new tag 
Shell :: powershell list usb devices 
Shell :: install virtualmin 
Shell :: copy ssh-keygen, copy ssh key, copy ssh public key, copy ssh key 
Shell :: get files in directory bash 
Shell :: docker no sudo 
Shell :: bash for i in range then 
Shell :: ssh-keygen 
Shell :: show connected wifi password windows 
Shell :: install getkirby 
Shell :: .gitignore not working visual studio 
Shell :: git ubuntu store credential 
Shell :: git reset origin branch 
Shell :: git cli switch user 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =