I have an issue with merging and branching changes to BitBucket repos using Visual Studio 2017.
After a quick search I came across this post here.
However my situation is slightly different from the one encountered in the aforementioned post.
I have a branch (lets call V1.0
) which was released. From there I used the New branch from local...
option in Visual Studio 2017 which created V2.0
.
I did this thinking they would be completely separate when it came to pushing changes on each respective branch however V2.0
is now listed in VS as V2.0 origin/V1.0
.
I wanted to be able to switch between the branch making changes where necessary however if I make a change on V2.0
and then try to push, I get the error -
Error encountered while pushing to the remote repository: rejected Updates were rejected because a pushed branch tip is behind its remote counterpart. Check out this branch and integrate the remote changes before pushing again.
Essentially what I want is to have 2 completely separate branches now that are unaffiliated, is there a way I can dethatch V2.0
from V1.0
so there is no origin association.
I looked at the rebase
option but this meant that everything that is different with V1.0
was getting pulled down and merged into V2.0
which is exactly NOT what I wanted.