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

merging .gitignore

From
MKmartin f krafft <madduck@madduck.net>
Date
Oct 1, 2007, 13:03 UTC
Message-ID
<20071001130314.GA5932@lapse.madduck.net>
Dear gits (oh dear…),

we just ran into a problem in a git-managed project and I'd be interested to learn how you approach this.

Our main line ("upstream"), which tracks a remote repository, does not have a .gitignore file. For new features, we use feature branches, and we merge those into an integration branch ("master") and track them separately of upstream.

Feature branch A has a .gitignore file, and it's been merged into master for a while. Today, feature branch B failed to merge into master because it also provides a .gitignore file. We can obviously resolve the conflict, but I wonder whether there is a better way to deal with this since we deal with quite a large number of new feature branches and it's only a matter of time until the next one will conflict because of .gitignore.

(and yes, this is basically a reincarnation of my case for .gitignore.d [http://lists.zerezo.com/git/msg627581.html]).

Thoughts,
-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
kermit: why are there so many songs about rainbows?
fozzy: that's part of what rainbows do.
 
spamtraps: madduck.bogus@madduck.net
Next: Andy Parkins
Message 1 of 20 in “merging .gitignore”
  1. martin f krafftOct 1, 2007
  2. Andy ParkinsOct 1, 2007
  3. Johannes SchindelinOct 1, 2007
  4. martin f krafftOct 2, 2007
  5. Junio C HamanoOct 2, 2007
  6. martin f krafftOct 2, 2007
  7. Pierre HabouzitOct 2, 2007
  8. Pierre HabouzitOct 2, 2007
  9. martin f krafftOct 2, 2007
  10. Pierre HabouzitOct 2, 2007
  11. martin f krafftOct 2, 2007
  12. Pierre HabouzitOct 2, 2007
  13. martin f krafftOct 3, 2007
  14. Pierre HabouzitOct 3, 2007
  15. Pierre HabouzitOct 2, 2007
  16. Andy ParkinsOct 3, 2007
  17. Johan HerlandOct 3, 2007
  18. Johannes SchindelinOct 3, 2007
  19. Johan HerlandOct 3, 2007
  20. Junio C HamanoOct 3, 2007

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.