I an new to one project.
I cloned the repo by using git clone git@###.###….
And seems this command only cloned the master branch. Since this is a new project. No code is in this master branch. I see all code right now are in ‘develop’ branch. So i tried to clone develop branch.
So I did: git clone -b develop git@###.###
Then I got error message:
Fatel: destination path $$$ already exists and is not an empty directory.
My question is:
what is right way to do so?
Should I cd .. this directory and create a separate new folder for develop branch?
Thanks for all your help!
Just use
git checkout developand you will be on
developbranch. When you clone your repository, you should not clone every branch. You can just switch between them.You can see all your branches by typing
git branch -r