From: Kirill Smelkov Date: Fri, 19 Sep 2008 05:06:12 GMT Subject: Re: [TopGit PATCH] .gitignore += vim swap files Message-ID: <20080919050612.GA4423@roro3> In-Reply-To: On Thu, Sep 18, 2008 at 03:30:35PM -0400, Daniel Barkalow wrote: > On Thu, 18 Sep 2008, Bert Wesarg wrote: > > > On Thu, Sep 18, 2008 at 18:29, Kirill Smelkov wrote: > > > Signed-off-by: Kirill Smelkov > > > --- > > > .gitignore | 2 ++ > > > 1 files changed, 2 insertions(+), 0 deletions(-) > > > > > > diff --git a/.gitignore b/.gitignore > > > index 8868f2d..aa39db4 100644 > > > --- a/.gitignore > > > +++ b/.gitignore > > > @@ -18,3 +18,5 @@ tg-import.txt > > > tg-remote > > > tg-remote.txt > > > tg > > > + > > > +*.swp > > can't you do this in your .git/info/excludes? > > It's generally better to put a core.excludesfile entry in your > ~/.gitconfig pointing to a ignore file with editor temporaries for the > editor(s) you personally use. This will then apply to all git projects you > work on. Yes, this makes sense, thanks. I've had to add the following to my ~/.gitconfig [core] excludesfile= /home/kirr/.gitignore-kirr because it does not work when '~' is used for $HOME [core] excludesfile= ~/.gitignore-kirr # does not work Is it intended? Still I think since a lot of people have to do the same operation, maybe it makes sense to put ignores for popular tools right into project's .gitignore. -- Всего хорошего, Кирилл.