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

.gitignore vs untracked working file

From
Rostislav Svoboda <rostislav.svoboda@gmail.com>
Date
Aug 10, 2009, 09:57 UTC
Message-ID
<286817520908100257n35b178ebu387161658554b4a@mail.gmail.com>
Hi

I have a .gitignore rule to ignore everything in bin/ directories but I cannot change branch because of a file lying in a bin/ directory which actually should be ignored. What am I doing wrong?

$ git branch
  master
* mybranch

$ git status # On branch mybranch nothing to commit (working directory clean)

$ cat .gitignore *.class .cvsignore CVS/ .metadata/ build/ bin/ .#*

$ git checkout master error: Untracked working tree file 'Project/bin/path/file.jjt' would be overwritten by merge.

$ git --version git version 1.6.4.msysgit.0

thx
Bost
Next: Uwe Kleine-König
Message 1 of 7 in “.gitignore vs untracked working file”
  1. Rostislav SvobodaAug 10, 2009
  2. Uwe Kleine-KönigAug 10, 2009
  3. Rostislav SvobodaAug 10, 2009
  4. Johannes SixtAug 10, 2009
  5. Rostislav SvobodaAug 10, 2009
  6. Johannes SixtAug 10, 2009
  7. Rostislav SvobodaAug 10, 2009

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.