Exam Preparation Quiz

Question 64 of 75

Recover a Deleted Git Branch

At MDFT Pro, you have an Azure Repos repository named repo1 that contains educational materials. You accidentally deleted a branch named features/feature11 that contained important course materials. You need to recover the deleted branch.

Your colleague Claire tells you that she had pulled the branch before it was deleted, but she doesn’t remember the exact commit ID. The branch contained updated course content for a new Azure certification prep exam that needs to be delivered to students next week.

You need to find the lost commit and recreate the branch with all its content intact. Which three commands should you run in sequence to recover the deleted branch?

Choose all correct answers from the options below.

Explanations for each answer:

Learn more about branch recovery in Git:
Git Branch Recovery
Next Question