Hi, I have just started SourceTree with BitBucket and I love the product, except for the following issue: I can't seem to be able to switch between branches? I mean, the actual switch is there, I see the highlighting of the different branches, but the code always remains the same?
If I am on my Branch A and switch back to my MASTER branch, I still see all the changes I made in Branch A when I open the project?
This is driving me nuts. Can anyone help out? Oh, I'm developing in C# using Visual Studio if that has something to do with it.
Regards, Bob
I don't know how familiar you are with git (I'm assuming you're using git) but if you have uncommitted changes in your current branch you will either need to commit them or stash them (set them aside without adding them to your git db) before switching to a different branch.
Thanks to both of you for your answers. I am pretty new to GIT indeed. Turns out I had switched branches before committing. Once I had done that, switching between branches worked fine. Thanks a lot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You should be able to switch branches by double-clicking the branch you want in the sidebar. The current branch should turn bold - the highlighting alone does not indicate that you've actualy changed branches.
Double clicking on a commit that is the top of a branch (or using the Checkout button to checkout a commit that is the tip of a branch) should also put you on that branch (but this could be ambiguous if more than one branch pointer points to the commit)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.