How to clone a specific branch using git

git clone -b <branch> <remote_repo>

Example

git clone -b develop https://github.com/laravel/laravel.git

You may also like...

Leave a Reply