On Thursday 01 November 2007, Junio C Hamano wrote: > Geert Bosch <bosch@xxxxxxxxxxx> writes: > > > I often type "make clean" as well many "git xyz" commands > > during development, and so it happens that at times, I type > > "git clean" by accident. > > Happened to me once. I hate that command. > > > So, I propose *not* converting git clean to a C builtin, > > but instead adding --untracked and --ignored options to > > git-rm. > > I think what you are trying to do is to deprecate or remove "git > clean". > > I do not know where "git clean" came from. I am suspecting that > it was to give counterparts to some other SCMs, but do not know > which ones. Some people wanted to have it --- so you need to > convince them that it is a bad idea first. Adding an equivalent > options to "git rm" alone does not solve that issue. What about making "git clean" _stash_ your changes instead of deleting them (so that you can undo the clean)? Preferably they should be stashed somewhere _other_ than where "git stash" does its thing. "git clean" could even delete the stash immediately, but keep the reflog around so that the "clean" at least could be undone within 30 days (or whatever is the current default). Thoughts? Have fun! :) ...Johan -- Johan Herland, <johan@xxxxxxxxxxx> www.herland.net - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html