How to clone a specific branch in git bitbucket

You can clone a single branch (without inadvertently cloning the whole project) with the following:

git clone <url> --branch <branch> --single-branch [<folder>]

Alternatively (attempting to address your new question here…), you can clone the whole project

git clone <url> 

Change directories into the folder and creating a new branch off of master with

git checkout -b validations

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)