How to clone a second branch using the same directory as the first cloned branch?

3

I have a repository with multiple branches, I cloned a specific one and worked on it.

  • Note: Because the repository is too large, it takes too long to clone the entire project at once.
asked by anonymous 06.10.2017 / 20:31

1 answer

0

You can use the command, to work directly with the branch:

git checkout -b [branch] [nomeremoto]/[branch]

Or if you want to create another branch and merge.

Creating the branch:

git branch nomebranch

Checking out:

git checkout nomebranch

Giving merge:

git merge nomebanchdesjado
    
10.10.2017 / 16:40