I am new to git version control and I dont know how to clone / pull a specific branch of a repo . Trying to get the branch master
of the project, but it defaults to
I don't think you fully understand how git by default gives you all history of all branches.
git clone --branch master
will give you what you want.
But in fact, in any of the other repos where you ended up with test_1
checked out, you could have just done git checkout master
and it would have switched you to the master branch.
(What @CodeWizard says is all true, I just think it's more advanced than what you really need.)