Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

clone from a specific branch

git clone -b <branchName> <remote_repo_url>
Comment

git clone from specific branch

git clone -b branchName repoUrl
Comment

clone project from specific branch

git clone -b <branchname> <remote-repo-url>
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

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 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 project from specific branch

git clone -b passwordless-auth git@github.com:BolajiAyodeji/nextjs-blog.git
Comment

git : open another branch ( like clone )

## Use git worktree

$ git worktree add ../<new_folder> <branch_name>
Comment

clone github project / checkout a single branch

git checkout <name_of_branch>
Comment

PREVIOUS NEXT
Code Example
Shell :: git hub set up 
Shell :: open terminal in current folder windows 
Shell :: replace main with another branch 
Shell :: write command in linux 
Shell :: linx delete 
Shell :: jenkins local 
Shell :: how to install chrome browser on linux mint using terminal 
Shell :: how to send email with body and attachment in unix 
Shell :: 1password cli install 
Shell :: lumbha ram github 
Shell :: heroku pg:pull ----exclude-table-dat 
Shell :: i wrongly deleted code , can i retrieve through git command 
Shell :: loop clear and ls lrt command line linux 
Shell :: tab to csv command line 
Php :: How to Log Query in Laravel 
Php :: laravel clear route cache 
Php :: how to create random alphanumeric in php 
Php :: laravel Str::random 
Php :: laravel migrate only 1 file 
Php :: wordpress turn off php warnings 
Php :: php forbidden header 
Php :: Get the content of a specific page (by ID) 
Php :: laravel 8 previous page 
Php :: a2dismod php 8.0 
Php :: laravel .htaccess settings 
Php :: php header redirect 
Php :: create laravel project specific version 
Php :: convert one time zone datetime value to another using php 
Php :: laravel has table 
Php :: clear log file laravel command 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =