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

Re: Can't track untracked file

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 16, 2012, 02:04 UTC
Message-ID
<7vr4r7383v.fsf@alter.siamese.dyndns.org>
In-Reply-To
<A32BFCAF-114F-4A65-B802-8DD2A795B96E@snafu.org>
Marco S Hyman <marc@snafu.org> writes:
Show 12 quoted lines
> And there is NOTHING I can do to get that directory into git.
>
>   $ git add 2010
>   $ git commit -m 'will it work?'
>   # On branch master
>   # Untracked files:
>   #   (use "git add <file>..." to include in what will be committed)
>   #
>   #	2010/
>   nothing added to commit but untracked files present (use "git add" to track)
>
> The directory is not empty.

Perhaps "2010" or everything in it is ignored in .gitignore in higher directories?

Previous: Marco S Hyman
Message 2 of 2 in “Can't track untracked file”
  1. Marco S HymanAug 15, 2012
  2. Junio C HamanoAug 16, 2012

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.