Recently I have installed Source Tree in my windows machine. How can I use the source tree for commit, merge of code to central repository?? And also how can I switch the branches ?? Can any one kindly provide me the links on how to overcome this??
Asked
Active
Viewed 1.3e+01k times
56
-
if the answer from @michaK has helped you out then you should mark it as accepted (click the green tick/checkmark) – Chris B Dec 05 '13 at 09:22
3 Answers
84
Hi I'm also relatively new but I can give you basic help.
- To switch to another branch use "Checkout". Just click on your branch and then on the button "checkout" at the top.
UPDATE 12.01.2016:
The bold line is the current branch.
You can also just double click a branch to use checkout.
- Your first answer I think depends on the repository you use (like github or bitbucket). Maybe the "Show hosted repository"-Button can help you (Left panel, bottom, right button = database with cog)
And here some helpful links:

mfgmicha
- 3,784
- 1
- 25
- 26
12
- Go to the log view (to be able to go here go to View -> log view).
- Double click on the line with the branch label stating that branch. Automatically, it will switch branch. (A prompt will dropdown and say switching branch.)
- If you have two or more branches on the same line, it will ask you via prompt which branch you want to switch. Choose the specific branch from the dropdown and click ok.
To determine which branch you are now on, look at the side bar, under BRANCHES, you are in the branch that is in BOLD LETTERS.

nycdanie
- 2,921
- 3
- 18
- 21
6
Sometimes it is impossible to click on correct branch in history view. Find branch you want in left panel, under remote and double click it.

Kajbo
- 1,068
- 3
- 16
- 31
-
I double click on it and a prompt is shown and say to extract the branch not to switch to it !! – MAHA OUEGHLANI Oct 12 '22 at 07:54
-
idk, try right click? Or just open commad prompt in the folder and write `git checkout
` – Kajbo Oct 12 '22 at 08:16