Suddenly lost a Azue DevOps feature branch and I don't remember the name of the branch

Seetalaksmi Pawar (ADMIN) 0 Reputation points
2024-10-21T14:38:59.5833333+00:00

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
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 60,161 Reputation points
    2024-10-21T14:57:18.6333333+00:00

    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.

    0 comments No comments

  2. 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 and Accept as answer if the reply is helpful--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.