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

Re: Issue when adding new files to staged changes using interactive mode

From
Taylor Blau <me@ttaylorr.com>
Date
Jul 31, 2020, 19:51 UTC
Message-ID
<20200731195114.GA3409@syl.lan>
In-Reply-To
<5BDF4B85-7AC1-495F-85C3-D429E3E51106@gmail.com>
On Wed, Jul 29, 2020 at 12:10:19AM +0100, Another Email wrote:
Show 8 quoted lines
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
>
> What did you do before the bug happened? (Steps to reproduce your issue)
> git init test
> cd test
> echo "test" > test.txt
> git add -AN

Passing '-A' to 'git add' is the problem. See the discussion further down in the thread for why this is the case. Whether or not this is a good thing, this will do what you want without '-A' (that is, by running 'git add -N' instead).

Thanks, Taylor

Previous: Another Email
Message 5 of 5 in “Issue when adding new files to staged changes using interactive mode”
  1. Another EmailJul 28, 2020
  2. Raymond E. PascoJul 29, 2020
  3. Raymond E. PascoJul 29, 2020
  4. Another EmailJul 29, 2020
  5. Taylor BlauJul 31, 2020

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.