Cleaning Untracked Files under Git

When I want to totally undo the changes I have made, I do…

git reset --hard

This command doesn’t clean newly added but untracked (staged) files. To clean the files…

git clean -fd

Leave a Reply

Your email address will not be published.