We do not currently provide support for Azure DevOps on this site. You'll need to ask for support using their official channels over here.
Suddenly lost a Azue DevOps feature branch and I don't remember the name of the branch
I worked on a feature branch for last couple of weeks and suddenly one morning on last Friday , I don't see the branch in Azure DevOps Repository anymore. Unfortunately I don't remember the exact name of the branch which is needed in UI if it was deleted accidently. I tried to explore through Azure DevOps api , git fsck everything still I can't find any reference to my code. It's really weird. Since I didn't create any pull request , there's no trace there either. It's frustrating that it could get lost so fast and I can't find any references of deleted branches or searching using keywords.
Community Center | Not monitored
2 answers
Sort by: Most helpful
-
-
Manu Philip 20,206 Reputation points MVP Volunteer Moderator
2024-10-21T15:00:45.24+00:00 Hi,
As you are not remembering the branch name, it is not possible to work on a restore.
Another alternative, if you have a local environment is to retrieve the Git log locally by reflog. Other team members can also help, if they have a local backup available. Try using git to see if it could help
I see some reference in Stack Overflow also
Hope this helps.
--please don't forget to
upvote
andAccept as answer
if the reply is helpful--