Re: Some strange behavior of git
- From
Thomas Gummerer <t.gummerer@gmail.com>
- Date
- Feb 25, 2016, 09:57 UTC
- Message-ID
- <20160225095755.GJ1831@hank>
- In-Reply-To
- <56CE31F8.7090706@ip-5.ru>
On 02/25, Olga Pshenichnikova wrote:
Show 20 quoted lines
> Hello, > we use git in our project. > What can be cause for further confusing behavior? > > git@ip5server:~$ git status > On branch master > Untracked files: > (use "git add <file>..." to include in what will be committed) > > app/addons/arliteks/ > > nothing added to commit but untracked files present (use "git add" to > track) > git@ip5server:~$ git clean -dn > Would remove app/addons/arliteks/ > Would remove design/ > Would remove js/ > Would remove var/langs/en/ > > Why I don't see all 4 directories in first command?
Are the design/, js/ and var/langs/en/ directories empty? Git doesn't track empty directories, so they won't show up in git status, but with git clean -d you specify that Git should also remove untracked directories, which is why you see them here.
> -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html
-- Thomas