brunodd
brunodd

Reputation: 2584

Git: Undo modified files before adding to stage

How to undo a modified file on Git? If I do a git status I get the message: modified: project/index.html however I want to undo all changes on that file before adding to stage.

Upvotes: 1

Views: 261

Answers (1)

rajuGT
rajuGT

Reputation: 6404

Do git checkout of that file

git checkout project/index.html

Upvotes: 3

Related Questions