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

Specifying excludesfile in a portable way?

From
FFFyn Fynn <fynfynn@gmail.com>
Date
Dec 24, 2009, 03:45 UTC
Message-ID
<1a04eebf0912231945l3235bc4dpdd8c541feef9bdd3@mail.gmail.com>
I have specify an excludesfile in my ~/.gitconfig:
  [core]
      excludesfile = /Users/fynn/.gitexcludes

This works fine for my OS X workstation. But when I sync this .gitconfig to our Linux server, the excludesfile is ignored because my home directory there is /home/fynn.

Is there a way to specify that in a portable way? I tried both ~/.gitexcludes and $HOME/.gitexcludes; neither worked on any platform.

git version on both platforms is 1.6.4

Thanks, Fynn

Next: Jeff King
Message 1 of 4 in “Specifying excludesfile in a portable way?”
  1. Fyn FynnDec 24, 2009
  2. Jeff KingDec 24, 2009
  3. Fyn FynnDec 24, 2009
  4. Jeff KingDec 24, 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.