`

Git: clone a specific branch

git 
阅读更多

Git: clone a specific branch

 

git clone -b <branch> <remote_repo>

Example:

git clone -b my-branch git@github.com:user/myproject.git

Alternative (no public key setup needed):

git clone -b my-branch https://git@github.com/username/myproject.git
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics