Question: After modifying some existing files in a repository, you decide to discard the changes. What command can you use?

  1. git restore
  2. git undo
  3. git clean
  4. git checkout

Answer: The correct answer of the above question is Option A:git restore