MCQs > IT & Programming > Git > What is the difference between a soft reset (git reset --soft) and a hard reset (git reset –hard) ?

Git MCQs

What is the difference between a soft reset (git reset --soft) and a hard reset (git reset –hard) ?

Answer

Correct Answer: A soft reset only changes the commit that HEAD points to, while a hard reset resets the index and working tree to match the specified commit, discarding any changes.

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