Git Global Ignore Files possible ?

466 views
Skip to first unread message

apremdas

unread,
May 7, 2008, 10:26:04 AM5/7/08
to PeepCode
In the screen cast Geoffrey uses .gitignore to ignore a .DS_Store
file. This could get pretty tedious to do for every project you work
on. Is there a way you can tell Git to globally ignore these files?

Christopher Redinger

unread,
May 7, 2008, 11:40:41 AM5/7/08
to peep...@googlegroups.com
Set up a 'global ignore file' like this:

git config --global core.excludesfile ~/.gitignore

Then list your .DS_Store in that .gitignore file.

Of course then that .gitignore file is per-user, so it won't get
tracked in version control. Meaning other developers would need to
follow suite.

--
Christopher Redinger
http://www.agiledisciple.com

apremdas

unread,
May 8, 2008, 2:17:39 PM5/8/08
to PeepCode
cool, many thanks

On May 7, 4:40 pm, "Christopher Redinger" <redin...@gmail.com> wrote:
> Set up a 'global ignore file' like this:
>
> git config --global core.excludesfile ~/.gitignore
>
> Then list your .DS_Store in that .gitignore file.
>
> Of course then that .gitignore file is per-user, so it won't get
> tracked in version control. Meaning other developers would need to
> follow suite.
>
Reply all
Reply to author
Forward
Message has been deleted
0 new messages