Discard changes on in working directory (no add, no commit) $ git checkout -- <file> Discard changes in working directory (no add, no commit) $ git checkout -- . Unstage in unstage after git add >file> $ git rm --cached <file