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

Re: t5403.1 and adding a file that belongs to a submodule

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 20, 2011, 17:50 UTC
Message-ID
<7v1uxk96z9.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CACsJy8AgboAj86PHi6jiSyRFsJJ7hn=mkbt+2UdBva6LmKk4ZQ@mail.gmail.com>
Show 5 quoted lines
> git init
> mkdir foo
> (cd foo; git init; touch abc; git add abc; git ci -m1)
> git add foo/abc
> Note that doing "touch abc; git add abc foo/abc" instead will only add "abc".

I think you mean s/ci/commit/, but it is an (perhaps lower priority) bug in "git add". Good that you spotted it.

Previous: Nguyen Thai Ngoc Duy
Message 4 of 4 in “t5403.1 and adding a file that belongs to a submodule”
  1. Nguyen Thai Ngoc DuyJul 19, 2011
  2. Junio C HamanoJul 19, 2011
  3. Nguyen Thai Ngoc DuyJul 20, 2011
  4. Junio C HamanoJul 20, 2011

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.