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

git commit -a reports untracked files after a clone

From
Philipp Metzler <phil@goli.at>
Date
May 15, 2011, 00:46 UTC
Message-ID
<7B399C74-8048-42BA-8672-9D7964F24888@goli.at>
Hi,
I have a problem with git on OS X 10.6.7
5102c6173c5a1c683dfdd8ccd07528adddd51745 is the first bad commit

SHA: 5102c6173c5a1c683dfdd8ccd07528adddd51745 Author: Joshua Jensen <jjensen@workspacewhiz.com> Date: Sun Oct 03 2010 11:56:43 GMT+0200 (CEST)

This is how you can reproduce the problem:
1. clone a repo
2. run the command "git commit -a"

I would expect: nothing to commit (working directory clean) Instead it reports: nothing added to commit but untracked files present (use "git add" to track)

Starting with commit 

SHA: 8c8674fc954d8c4bc46f303a141f510ecf264fcd Author: Jeff King <peff@peff.net> Date: Fri Mar 25 2011 19:13:31 GMT+0100 (CET)

the following behaviour can be observed when these three commands are run in this order:
1. git commit -a 
   nothing added to commit but untracked files present (use "git add" to track)
2. git status
   nothing to commit (working directory clean)
3. git commit -a
   nothing to commit (working directory clean)
So "git status" makes the untracked files "go away".
Cheers,
Philipp
_______________________________________________________________

DI Philipp Metzler Goli.at GesbR. Dorf Rieden 7/11 A-6900 Bregenz EU - Austria

E-Mail: phil@goli.at
Skype: googol
Tel: +43 / 676 / 72 94 176
ICQ: 13950954

o www.philippmetzler.com - Softwareentwicklung und Websites mit Django und Typo3. o www.goli.at - Ihr Speicherplatz im Netz. Messen Sie uns an unseren Daten. o www.clickshopping.at - Wir bringen Ihre Produkte auf den Punkt. o www.greencar.at - Elektroautos und mehr ... _______________________________________________________________

Next: Junio C Hamano
Message 1 of 13 in “git commit -a reports untracked files after a clone”
  1. Philipp MetzlerMay 15, 2011
  2. Junio C HamanoMay 15, 2011
  3. Philipp MetzlerMay 15, 2011
  4. Jeff KingMay 16, 2011
  5. Philipp MetzlerMay 16, 2011
  6. Jeff KingMay 16, 2011
  7. Philipp MetzlerMay 16, 2011
  8. Philipp MetzlerMay 16, 2011
  9. Jeff KingMay 16, 2011
  10. Jeff KingMay 27, 2011
  11. Jeff KingMay 27, 2011
  12. Joerg RosenkranzOct 5, 2011
  13. Jeff KingOct 6, 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.