local junk and .gitignore (was: [ANNOUNCE] xeyes 1.0.991)

olafBuddenhagen at gmx.net olafBuddenhagen at gmx.net
Fri Oct 30 22:11:26 PDT 2009


On Tue, Oct 06, 2009 at 03:45:45PM -0400, James Cloos wrote:

>       Add *~ to .gitignore to skip patch/emacs droppings

As such things are inherently local and specific to your own workflow,
IMHO they shouldn't go in the .gitignore in the repository.

Luckily -- unlike CVS -- Git offers another way to ignore stuff locally:
you can specify extra gitignore files in the configuration.

You can even do this globally for all your repositories. For that, add
to your ~/.gitconfig:

   	excludesfile = /home/<login>/.site.gitignore

and then create ~/.site.gitignore (or whatever name you prefer) with *~
and other local stuff you tend to have in your working trees.


More information about the xorg mailing list