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

Author: admin

A software engineer in greater Seattle area

Leave a Reply

Your email address will not be published. Required fields are marked *