Microsoft DevOps Engineer Expert AZ-400 Practice Question

A co-worker accidentally rewrote the history of the remote release branch by using git reset --hard and then force-pushing the changes. This action removed the two most recent commits. After running git fetch in your local repository to synchronize with the remote, you are tasked with recovery. Which command should you execute to find the hashes of the lost commits?

  • git reflog

  • git stash list

  • git fsck --lost-found

  • git log --graph --decorate

Microsoft DevOps Engineer Expert AZ-400
Design and implement a source control strategy
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot