1

I have about 20 files which have unstaged changes since the last commit. I would like to discard changes in one of these files while keeping the changes to the rest intact. How could I do that?

MadPhysicist
  • 5,401
  • 11
  • 42
  • 107

1 Answers1

7

git checkout -- <file-path>

eftshift0
  • 26,375
  • 3
  • 36
  • 60