How to ignore a file from git globally
In your global git config you can set core.excludesfile
to point to a file where you define things you'd rather not ever go into a repo. This is especially useful for things that are part of your local workflow that don't need to be shared across projects, but which are best kept in the project dir for other reasons.