git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

Previous: Randall S. BeckerNext: Thomas Gummerer
Message 4 of 6 in “Some strange behavior of git”
  1. Olga PshenichnikovaFeb 24, 2016
  2. Stefan BellerFeb 24, 2016
  3. Randall S. BeckerFeb 24, 2016
  4. Thomas GummererFeb 25, 2016
  5. Thomas GummererFeb 25, 2016
  6. Olga PshenichnikovaFeb 25, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.