Archive for January, 2013

git: undo all working dir changes including new files

January 17, 2013 Leave a comment

From : stack overflow

git reset --hard # removes staged and working directory changes
git clean -f -d # remove untracked files

Since this is so useful, I thought I’d post this for myself for reference and anyone else who needs it (you probably do if you use git)

Categories: R&D Tags: ,