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

Beginner problem with .gitignore

From
Kai Schlamp <schlamp@gmx.de>
Date
Apr 20, 2009, 17:57 UTC
Message-ID
<gsid27$p1$1@ger.gmane.org>
Hello.

I have a file called TitleAreaDialog.java in the folder my_path\org.eclipse.jface\src\org\eclipse\jface\dialogs

.git and .gitignore is in the my_path\ folder (using Git Cygwin on Windows).

Now I everything is ignored from org.eclipse.jface, but not that TitleAreaDialog.java

So I specified the following in .gitignore: /org.eclipse.* !TitleAreaDialog.java

I also tried it with: !Title*, !/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java

but the TitleAreaDialog is always ignored as well.
What do I have to do to not ignore this file specifically?

Best regards, Kai

Next: Michael J Gruber
Message 1 of 5 in “Beginner problem with .gitignore”
  1. Kai SchlampApr 20, 2009
  2. Michael J GruberApr 21, 2009
  3. Kai SchlampApr 21, 2009
  4. Michael J GruberApr 21, 2009
  5. Kai SchlampApr 21, 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.