I have remote branches origin/master
and origin/test
on GitBucket server. When I will try to via source tree pull origin/test branch, which is not created locally in my working area on local PC, should I at first create a local branch with name "test" or source tree application will do it automatically?
Asked
Active
Viewed 884 times
1

Andronicus
- 25,419
- 17
- 47
- 88

user2095405
- 347
- 1
- 4
- 15
-
1Did you try it? What happened? – jonrsharpe Dec 28 '19 at 16:50
-
I did not, in the source tree pull modal window, there is message "Pull into local branch: Master" with no other choices. I think this is because I have no other local branches. – user2095405 Dec 28 '19 at 17:17
-
That will merge the content of that branch into master. To avoid this, and keep them separate, also locally, you would have to create a local branch for it. You can usually do that just by checking out the branch. – Lasse V. Karlsen Dec 28 '19 at 21:29
1 Answers
1
Make sure to Fetch first
Then, as described in "how to pull remote branch in source tree", you can checkout the remote branch into a local one.
Expanding
REMOTES > origin
was very close: You need to double click on the remote branch there, in your case test.
That will allow to create a new local branch based on the remote one.

VonC
- 1,262,500
- 529
- 4,410
- 5,250