How to recover a deleted branch in Azure DevOps git without knowing the “exact” name
up vote
0
down vote
favorite
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
git
New contributor
Steeve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
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
git
New contributor
Steeve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
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
git
New contributor
Steeve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
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
git
git
New contributor
Steeve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Steeve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Steeve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 2 days ago
Steeve
1
1
New contributor
Steeve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Steeve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Steeve is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
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).
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
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).
add a comment |
up vote
0
down vote
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).
add a comment |
up vote
0
down vote
up vote
0
down vote
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).
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).
answered 2 days ago
eftshift0
3,959817
3,959817
add a comment |
add a comment |
Steeve is a new contributor. Be nice, and check out our Code of Conduct.
Steeve is a new contributor. Be nice, and check out our Code of Conduct.
Steeve is a new contributor. Be nice, and check out our Code of Conduct.
Steeve is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53225109%2fhow-to-recover-a-deleted-branch-in-azure-devops-git-without-knowing-the-exact%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password