Specifying excludesfile in a portable way?
- From
- Fyn 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/.gitexcludesThis 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