Reputation: 5589
I cloned a git respository on my hard disc. This git repository contains not only the master but also a branch called newBranch. How can I checkout the new branch with tortoisegit?
I tried it with the switch/checkout command but nothing changed in my local files. What works is when I clone the two branches in different folders like but I want to get it working with tortoisegit.
git clone localhost:testProject
differs from
git clone localhost:testProject newBranch
Upvotes: 8
Views: 38237
Reputation: 1675
Go to settings from the context menu. General->Context Menu->Select 'Switch/Checkout'.
Afterwards it will be visible in the context menu.
Upvotes: 3
Reputation: 31
This is what worked for me:
Upvotes: 3
Reputation: 58441
You have a checkbox option Force
when switching branches in TortoiseGit.
Other than that, I must admit I'm stumped to.
Upvotes: 9