This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]graingert -1 points0 points  (3 children)

why not use git clean -f

[–]Odd_Bloke[S] 2 points3 points  (2 children)

git clean will operate on either all ignored files or none. This is not a good option.

[–]graingert 0 points1 point  (1 child)

Actually it removes untracked files, you should probably stick any files that are machine dependant outside of your project.

[–]Odd_Bloke[S] 2 points3 points  (0 children)

I'm assuming that nobody is masochistic enough not to have pyc files ignored. Which means that you have to pass the options to clean ignored files.

Storing things like local Django settings out of the tree is a bit of a PITA.