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

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

specific branch clone git

git clone -b <branch> <remote_repo>
git clone -b my-branch git@github.com:user/myproject.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 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

clone github project / checkout a single branch

git checkout <name_of_branch>
Comment

PREVIOUS NEXT
Code Example
Shell :: pyinstaller dmg on mac 
Shell :: ansible Permission denied (publickey,password). 
Shell :: sshfs syntax with ssh key 
Shell :: how to install tar.xz files on ubuntu 
Shell :: what is for ubuntu debian or rpm 
Shell :: what is group in linux? 
Shell :: allow a port in centos 8 stackoverflow 
Shell :: otu table tsv in biom 
Shell :: if you cannot update any of the repositry in ubuntu 
Shell :: This script makes a backup of my home directory. 
Shell :: termux comandos hack apk 
Shell :: Vim deleting all lines containing pattern 
Shell :: show files of certain type in a repository ubuntu 
Shell :: Install Pop Shell Window Tiling Extension on Ubuntu 20.04 
Shell :: plesk show mailqueue 
Shell :: The fingerprint for the RSA key sent by the remote host is 
Shell :: colcon select package 
Shell :: install pgadmin ubuntu 20.04 
Shell :: install styletron 
Shell :: view nohup output 
Shell :: format flash drive linux 
Shell :: uninstall newrelic amazon linux 
Shell :: how to run bash scripts from local machine to remote linux machine 
Shell :: how to take two ip addresses and perform arithemetic bash 
Shell :: git remove from staging 
Shell :: git tab not workingh 
Shell :: got push SSH 
Shell :: bash tab autocomplete to stdout 
Shell :: linux How do you find files that have specific permissions? 
Shell :: conda-forge install web_manager 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =