# Specifying excludesfile in a portable way?

4 messages from 2009-12-24 to 2009-12-24. Participants: Fyn Fynn, Jeff King.
Thread: https://gitlist.dev/t/22021

## Fyn Fynn, 2009-12-24 03:45

Subject: Specifying excludesfile in a portable way?
Message-ID: <1a04eebf0912231945l3235bc4dpdd8c541feef9bdd3@mail.gmail.com>
URL: https://gitlist.dev/e/1a04eebf0912231945l3235bc4dpdd8c541feef9bdd3%40mail.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

```

## Jeff King, 2009-12-24 05:53

Subject: Re: Specifying excludesfile in a portable way?
Message-ID: <20091224055350.GB419@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20091224055350.GB419%40sigill.intra.peff.net
In-Reply-To: <1a04eebf0912231945l3235bc4dpdd8c541feef9bdd3@mail.gmail.com>

```
On Wed, Dec 23, 2009 at 07:45:14PM -0800, Fyn Fynn wrote:

> 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

Not in v1.6.4, but you can use "~/.gitexcludes" in v1.6.6 (which was
just released today).

-Peff

```

## Fyn Fynn, 2009-12-24 07:14

Subject: Re: Specifying excludesfile in a portable way?
Message-ID: <1a04eebf0912232314y5dcbdfa7w4adea2eb617e0992@mail.gmail.com>
URL: https://gitlist.dev/e/1a04eebf0912232314y5dcbdfa7w4adea2eb617e0992%40mail.gmail.com
In-Reply-To: <20091224055350.GB419@sigill.intra.peff.net>

```
On Wed, Dec 23, 2009 at 9:53 PM, Jeff King <peff@peff.net> wrote:
> Not in v1.6.4, but you can use "~/.gitexcludes" in v1.6.6 (which was
> just released today).

That's great to hear!  But since it can take some time to update git
on all machines, is there an alternative for now, e.g. a way to
specify all those exclusions in .gitconfig itself?

> -Peff
>

```

## Jeff King, 2009-12-24 07:36

Subject: Re: Specifying excludesfile in a portable way?
Message-ID: <20091224073549.GA5893@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20091224073549.GA5893%40sigill.intra.peff.net
In-Reply-To: <1a04eebf0912232314y5dcbdfa7w4adea2eb617e0992@mail.gmail.com>

```
On Wed, Dec 23, 2009 at 11:14:10PM -0800, Fyn Fynn wrote:

> On Wed, Dec 23, 2009 at 9:53 PM, Jeff King <peff@peff.net> wrote:
> > Not in v1.6.4, but you can use "~/.gitexcludes" in v1.6.6 (which was
> > just released today).
> 
> That's great to hear!  But since it can take some time to update git
> on all machines, is there an alternative for now, e.g. a way to
> specify all those exclusions in .gitconfig itself?

No, I don't think there is another way to specify excludes in the config
file directly.

-Peff

```
