How do you delete untracked local files from your current working tree?
We can easily removed local untracked files from the current git working tree by using below git comments.
git reset [--soft | --mixed [-N] | --hard | --merge | --keep] [-q] []
Example:
git reset --hard HEAD
Links :