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

Can not 'git add file'

From
KKES <kes-kes@yandex.ua>
Date
Jan 3, 2016, 14:53 UTC
Message-ID
<1500251451832791@web17m.yandex.ru>
Hi.
How to reproduce
$ git-number
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

1 modified: ../lib/Devel/DebugHooks.pm 2 modified: ../lib/Devel/KillPrint.pm 3 modified: 00-simple.t

Untracked files:
  (use "git add <file>..." to include in what will be committed)

4 ../lib/Devel/DebugHooks/ 5 ../lib/Devel/ImportArgs.pm 6 ../lib/Devel/KillPrintTest.pm 7 ../lib/Devel/KillPrint_scope.pm 8 ../lib/Devel/PkgAtCompileTime.pm 9 ../lib/Devel/t.pl 10 lib/Devel/AutoInit.pm 11 lib/Devel/DZVii.pm

no changes added to commit (use "git add" and/or "git commit -a") $ git add -p ../lib/Devel/DebugHooks/Commands.pm No changes.

I want to start track file here, but I do not want to stage while file.
It seems the git can not process this case and do not allow me to complete that.
Next: Dennis Kaarsemaker
Message 1 of 2 in “Can not 'git add file'”
  1. KESJan 3, 2016
  2. Dennis KaarsemakerJan 3, 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.