简体   繁体   中英

How to recover a deleted branch in Azure DevOps git without knowing the “exact” name

I think I deleted a branch (locally and remote) few days ago in Azure DevOps (git repo). I know it is possible to restore if I knew the "exact name", but what if I didn't remember it entirely? Is there any activity logs I can refer to get the full name? Any Idea?

https://docs.microsoft.com/en-us/azure/devops/repos/git/restore-deleted-branch?view=vsts&tabs=new-nav

Look for the id of the revision of the tip of the branch you want to recover on git reflog . Then you can use that id (checkout, create a branch on it, whatever).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM