I
I
Ivan ANTIKLAN2016-01-12 10:30:03
git
Ivan ANTIKLAN, 2016-01-12 10:30:03

How to clone an entire Git repository in SourceTree?

Hello!
Created a repository on Bitbucket. I pushed 2 branches master and develop there. After some time, it was necessary to recreate the repository through cloning (to be 100% clean). But after cloning, I got only the master branch.
Question: How to clone the entire repository with all branches or several desired branches in SourceTree?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
aol-nnov, 2016-01-12
@aol-nnov

  1. git-scm.com/book/ru/v1
  2. git fetch origin
  3. git checkout -b develop origin/develop
  4. ...
  5. PROFIT!!1

V
Vladimir Io, 2016-01-12
@vawsan

The bottom line is that there are other branches, but to display them you need to add a tag:
instead
Then you will see them all and yes, they will not be pulled up.
To view them, you need to write:
And to work with it:
In this case, it will be tied up and will track with the remote branch from the original.
Your case is described in more detail on stackoverflow .

V
Victor, 2016-01-12
@v_decadence

The repository is cloned completely, you just need to checkout the external branch so that the corresponding local branch appears in which you can work.
It is in SourceTree that this is done like this:
14Jj1hGTw.png14Jj1hGTx.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question