y7hf6w
Last Updated: April 24, 2019
·
190.1K
· dizpers

How to clone a specific branch in git

git

In general:

git clone -b <branch> <remote_repo>

Example:

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

5 Responses
Add your response

22572

More than 2 years ago a --single-branch option was introduced: http://stackoverflow.com/questions/4811434/clone-only-one-branch/14930421#14930421

over 1 year ago ·
24694

Simple and Good.

Thanks!

over 1 year ago ·
31255

Thank you for sharing this, Play http://coolmathgamesjunction.net and enjoy your free time for free without download.

5 months ago ·
31898

Thanks for posting this. searching this on google for long time https://pixelgun.tradetricks.org/

about 2 months ago ·
32663

Your sharing is great. I am they are a lot of things from your article.
https://cmgames.io/game/fireboy-amp-watergirl-ep-3

1 day ago ·