Question 12 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question 12 of 100 from exam 350-901-DEVCOR: Developing Applications Using Cisco Core Platforms and APIs

Question

DRAG DROP - Drag and drop the steps from the left into the correct sequence on the right to describe how to use Git to maintain the current HEAD and revert back to a previous commit, while undoing all intermediate commits.

Select and Place:

Answer Area

git commit -m ‘Revert to 56e05fced commit step 1
git reset -soft HEAD@{1} step 2

git log step 3

git reset -hard 56e05fced step 4

git status

step 5

Explanations

Answer Area

git commit -m “Revert to 56e05fced commit”

git status

git reset -soft HEAD@{1},

git log

git log

git reset soft HEAD@{1}

git reset --hard 56e05fced

git reset hard 56e05fced

git status

git commit -m “Revert to 56e05fced commit”