How to clone a specific branch using git

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

Leave a Reply

Close Menu
%d bloggers like this: