After mistakenly staging a file named myFile to the index, how would you remove it from the index to exclude it from your next commit?

🎲 Try a Random Question  |  Total Questions in Quiz: 118  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Git Quiz — practice the complete quiz, review flashcards, or try a random question.

Git MCQs For LinkedIn Skill Assessments.


After mistakenly staging a file named myFile to the index, how would you remove it from the index to exclude it from your next commit?