* How to recursively clean only those untracked files that are not ignored?
@ 2014-04-19 9:05 Ilya Basin
0 siblings, 0 replies; only message in thread
From: Ilya Basin @ 2014-04-19 9:05 UTC (permalink / raw)
To: Git mailing list
According to the help, without -x option git clean should let alone the ignored files, but it doesn't.
[il@reallin test]$ cat .gitignore
*.sar
[il@reallin test]$ mkdir -p conf/sar && touch conf/sar/aaa.sar
[il@reallin test]$ git status
# On branch master
nothing to commit, working directory clean
[il@reallin test]$ git clean -df
Removing conf/
conf/sar/aaa.sar is removed.
I already asked this http://stackoverflow.com/questions/23148736/git-clean-removes-ignored-files-by-default
Someone even replied that "git does exactly what documentation says".
Well, maybe, but I have doubts that the combination '-df' (without
'-x') is useful at all. If someone wanted to delete ignored files, he
would use '-x' or '-X'.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-19 9:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-19 9:05 How to recursively clean only those untracked files that are not ignored? Ilya Basin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).