Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Online - The version descriptor <BranchName> could not be resolved

I am working on a project with visual studio online and git.

I tried accessing the TFS Online web site and openning the source code of the project I am working on and I found this error popping up absolutely everywhere:

TF401175:The version descriptor Branch could not be resolved to a version in the repository ProjectName

I can't access the branches, commits, source code or absolutely anything. The other team members don't have the problem, and it seems to be tied to my account, seeing as I tried openning it on another device with my account and still failed.

All operations from visual studio work fine. I can commit, pull, push, etc. I only can't access the Web Panel. Tried googling for the error but all I found was the bug reported on the MS site, which was closed and said that the problem is fixed. Doesn't seem fixed to me.

like image 206
Phoenix Avatar asked Nov 06 '15 21:11

Phoenix


2 Answers

Your default branch has been deleted.

You need to change your default branch to one that exists. Try using the branch selector, it that's not available, try appending #path=%2F&version=GBmaster&_a=contents to the end of the default "Code" URL.

like image 172
DaveShaw Avatar answered Sep 26 '22 06:09

DaveShaw


I got the same error.
In my case my local branch had not yet been synced to the server, so in my web browser the Pull-Request was on the server (vsts) but my branch was not.
To fix it: I did a Sync in VS, pushed my local branch, then it worked: I refreshed the Pull Request in the browser and then the error disappeared.

like image 21
Spyder Avatar answered Sep 24 '22 06:09

Spyder