MCQs > IT & Programming > Git > Describe what these Git commands do to the commit history: Git reset --hard HEAD~5 Git merge --squash HEAD@{1}

Git MCQs

Describe what these Git commands do to the commit history: Git reset --hard HEAD~5 Git merge --squash HEAD@{1}

Answer

Correct Answer: The current branch's HEAD is reset back five commits, then prior commits are squashed into a single commit.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Git Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Git Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it