Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

clone specific branch

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

clone specific branch

In general:

git clone -b <branch> <remote_repo>

Example:

git clone -b develop git@github.com:user/myproject.git
Comment

clone from a specific branch

git clone -b <branchName> <remote_repo_url>
Comment

git clone from specific branch

git clone -b branchName repoUrl
Comment

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

clone a given branch github

git clone --single-branch --branch <branch> <repository>
Comment

how do i clone a specific branch in git

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

clone a specific branch

clone a specific branch... 
$ git clone -b <branchName> <clone with HTTPs link>
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 only

git clone -b mybranch --single-branch git://sub.domain.com/repo.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

clone specific branch from github repo

git clone -b <branch name> --single-branch https://github.com/<user name>/<repo>.git
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

clone github project / checkout a single branch

git checkout <name_of_branch>
Comment

PREVIOUS NEXT
Code Example
Shell :: react material-ui install error on react 18 
Shell :: shell replace substring 
Shell :: how to restart network manager in kali 
Shell :: install plasma on ubuntu 
Shell :: expo upgrade reset 
Shell :: centos copy files ssh 
Shell :: dos delete 
Shell :: find java home 
Shell :: node install ubuntu 
Shell :: terminal matrix effect 
Shell :: how to get list of users in ubuntu 
Shell :: git revert commit but keep changes 
Shell :: docker compose current directory 
Shell :: linux linebreaks script bash 
Shell :: check space left in ubuntu terminal 
Shell :: nuxt install 
Shell :: git push to heroku 
Shell :: how to update google chrome in ubuntu 20.04 
Shell :: npm install bootstrap 
Shell :: how to install .bin file in linux 
Shell :: dpkg: error processing archive /var/cache/apt/archives/atftpd_0.7.git20210915- 
Shell :: how to upgrade react in cra 
Shell :: setting sublimeREPL in linux 
Shell :: install psycopg2 
Shell :: install i18next-browser-languagedetector 
Shell :: revert local commit 
Shell :: git list remote branches 
Shell :: find linux with extension 
Shell :: git push -u origin master 
Shell :: git diff between local and remote branch 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =