GitHub: How to clone a specific branch


If you’re just getting started with GitHub and using the web interface or GitHub Desktop, doing something as simple as cloning a specific branch of a repository can be quite a challenge. You can do this with Git Bash:

git clone git://github.com/<user>/<repo>.git
cd <repo>
git checkout <branch>/<name>

This entry was posted in Git (en). Bookmark the permalink.

Leave a Reply

🇬🇧 Attention! Comments with URLs/email are not allowed.
🇷🇺 Комментарии со ссылками/email удаляются автоматически.