Helpful Git Commands


Discard all unstaged changes

git checkout -- . // For all unstaged files
git checkout /path-to-file // To a specific file

Reference: http://stackoverflow.com/questions/52704/how-do-you-discard-unstaged-changes-in-git

Advertisements