SyntaxFix
Write A Post
Hire A Developer
Questions
You can use git checkout <file> to check out the committed version of the file (thus discarding your changes), or git reset --hard HEAD to throw away any uncommitted changes for all files.
git checkout <file>
git reset --hard HEAD