On Thu, Jun 18, 2020 at 1:34 PM Jonathan Wakely via Gcc <gcc@gcc.gnu.org>
wrote:

> On Thu, 18 Jun 2020 at 19:22, Thomas Koenig via Gcc <gcc@gcc.gnu.org>
> wrote:
> >
> > Hi,
> >
> > I just found a few unversioned files called .intrinsic.c.swp and
> > similar in my "git status" output.
> >
> > Could somebody please put .*.swp into .gitignore?  I'm sure this
> > would save at least 10 reverts :-)
>
> You can just add it to .git/info/exclude in your own clone.
>

Or have a personal ~/.gitignore_global for all projects. Here is mine.

$ cat ~/.gitignore_global
*.o
*.swp
*~
*.gcno
changes-xxx
cscope.out

Here is the section in ~/.gitconfig to enable it and a couple of other
handy things.

[core]
        excludesfile = /home/joel/.gitignore_global
        whitespace = trailing-space,space-before-tab
        pager = less -R

Git is magic and full of options!

--joel
RTEMS

Reply via email to