DayToDayDevOpsCourse / GitHub

1 stars 10 forks source link

How to clone a specific branch? #4

Open venkatasykam opened 6 years ago

venkatasykam commented 6 years ago

Hi,

I have 4 branches dev, test, release, master. The default branch is 'master'. I want to clone only 'test' branch.

Thanks

onlinedevops2018 commented 6 years ago

Ans:

Syntax: git clone -b

Ex: git clone -b test https://github.com/onlinedevops2018/Project1.git