Question: After staging changes to several files, you realize the changes to the confin.properties file are incorrect, and need to be removed from the stage and working directory. What command can you use to remove the staged changes to the file?

  1. git reset HEAD^ -- config.properties
  2. git rm config.properties
  3. git rf config.properties
  4. git checkout HEAD -- config.properties

Answer: The correct answer of the above question is Option B:git rm config.properties