How to delete all changes from working directory including new untracked files. I know that git checkout -f does that, but it doesn’t delete new untracked files created since last commit.
Does anybody have an idea how to do that?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To see what will be deleted before-hand, without actually deleting it, use the
-nflag (this is basically a test-run). When you are ready to actually delete, then remove the-nflag:git clean -nfd