Skip to content

Instantly share code, notes, and snippets.

@pjchavarria
pjchavarria / Git Commands
Created December 11, 2013 17:45
Some git commands
//git: undo all working dir changes including new files
git reset --hard # removes staged and working directory changes
git clean -f -d # remove untracked files
git clean -f -x -d # CAUTION: as above but removes ignored files like config.