Reputation: 6561
I am using a Microsoft Azure Devops site for source control of my winforms solution. As shown below, I have created a 6.0.0.0 branch off of the 5.24.1.0 branch in Visual Studio 2019:
I now want to keep my changes from the 6.0.0.0 branch and create 5.25.0.0 branch off of 5.24.1.0, but when I do this the result is a branch called 5.25.0.0 which is a combination of 5.24.1.0 and 6.0.0.0:
Is it possible to branch off 5.24.1.0 without any changes from 6.0.0.0 being included, and then to switch between 5.25.0.0 and 6.0.0.0 as needed?
Upvotes: 1
Views: 3975
Reputation: 1324567
Yes, but the starting point is correct.
Since you have not done any new commit on branches 5.24.1.0 and 6.0.0.0, your thrid new branch 5.25.0.0 is, for now, at the same starting commit: the one already referenced by the other two branches.
Start making commits, and you will see each branch will have their own HEAD label, independently of the others.
Upvotes: 1