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

Re: git ignore logic does not work as advertised

From
John Keeping <john@keeping.me.uk>
Date
Jun 15, 2013, 17:07 UTC
Message-ID
<20130615170759.GH23890@serenity.lan>
In-Reply-To
<1766682.Es1SNxTkk2@x121e>
On Sat, Jun 15, 2013 at 06:18:46PM +0200, Thomas Koch wrote:
Show 16 quoted lines
> I'm using vcsh[1] to have my dotfiles in GIT. With that I use a .gitignore file 
> referenced by core.excludesfile that looks like this:
> 
> # ignore everything by default
> *
> 
> # but do not ignore emacs stuff
> !.emacs.d/
> 
> # but than again please ignore backup files inside the .emacs.d folder
> .emacs.d/backups
> 
> Now I'd expect git status to show everything in .emacs.d but not to show 
> .emacs.d/backups. However the .emacs.d/backups folder is still shown in git 
> status. I'd say that this is not in line with the man page and might be 
> considered a bug.

Which version of Git are you using? You may be hitting a regression that was introduced in Git 1.8.3 and is fixed in Git 1.8.3.1.

Previous: Thomas KochNext: Thomas Koch
Message 2 of 3 in “git ignore logic does not work as advertised”
  1. Thomas KochJun 15, 2013
  2. John KeepingJun 15, 2013
  3. Thomas KochJun 16, 2013

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.