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

Re: .gitignore: according to what rules does this work - SOLVED

From
KKKonrad Karl <kk_konrad@gmx.at>
Date
May 27, 2010, 08:51 UTC
Message-ID
<20100527085147.GB29598localhost>
In-Reply-To
<20100526162306.GA27815localhost>

This was actually a non-issue... see below Konrad

On Wed, May 26, 2010 at 06:23:06PM +0200, Konrad Karl wrote:
Show 19 quoted lines
> I have the following directory layout and want to exclude
> dir2 .. dirN
> 
> The following arrangement of .gitignore seems to work ok
> but I was unable to find docs about the double asterisks.
> 
> ./.gitignore:
> 
> *
> */
> !.gitignore
> !/dir1/
> 
> 
> dir1/.gitignore:
> 
> !**
> !**/
> 

There was a trailing blank after the first asterisk. When trying with two asterisks in despair I started with a fresh file with no trailing blank.

Somewhat difficult to diagnose (now I am knowing better :)
 
Previous: Konrad Karl
Message 3 of 3 in “.gitignore: according to what rules does this work”
  1. Konrad KarlMay 26, 2010
  2. Konrad KarlMay 27, 2010
  3. Konrad KarlMay 27, 2010

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.