Reputation: 2584
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.
git status
modified: project/index.html
Upvotes: 1
Views: 261
Reputation: 6404
Do git checkout of that file
git checkout project/index.html
Upvotes: 3