What is the difference between:
git clean -f temp1.txt
and
rm temp1.txt
Git doc says:
git-clean – Remove untracked files from the working tree
So what is really the point of doing this instead of only the system command?
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.
rmwill delete the file no matter what.git-cleanwill only delete it if it’s actually untracked. And of coursegit-cleanalso accepts arguments that customize its behavior in a repo-aware manner (e.g.-x).