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

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

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

git clone with branch name command

$ git clone git@gitlab.com:_addin/reponame.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 :: downgrade ruby version ubuntu 
Shell :: powershell connect to microsoft teams 
Shell :: Update in fedora before installs 
Shell :: check service status in linux 
Shell :: extract every nth line using sed linux fedora 
Shell :: git checkout next commit 
Shell :: how to get un merged branch git 
Shell :: git remove all tracked files after add in git ignoore 
Shell :: install mongoes 
Shell :: show install button for pwa react 
Shell :: linux edit file 
Shell :: tail remove newline 
Shell :: laravel start kit authentication 
Shell :: windows terminal 
Shell :: kazam recorder ubuntu 
Shell :: adobe photoshop on linux ubuntu 
Shell :: ubuntu move file 
Shell :: failed to push some refs to 
Shell :: mount network drive from windows wsl ubuntu 
Shell :: new screen linux 
Shell :: how to check whether a string contains a special character or not in bash 
Shell :: how to remove something from bin folder in ubuntu 
Shell :: github clone to local folder 
Shell :: git diff between one file 
Shell :: restart ubuntu terminal command 
Shell :: install wp cli wp org 
Shell :: git with ssh instead of https 
Shell :: bash do while one line 
Shell :: install docker machine ubuntu 
Shell :: set node role kubernetes 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =