Skip to content

Instantly share code, notes, and snippets.

@pwm1234
Last active August 29, 2015 14:15
Show Gist options
  • Save pwm1234/0868a1026c7c3c87a64d to your computer and use it in GitHub Desktop.
Save pwm1234/0868a1026c7c3c87a64d to your computer and use it in GitHub Desktop.
configuring a global gitignore
$ git config --global core.excludesfile ~/.gitignore
@pwm1234
Copy link
Author

pwm1234 commented Feb 19, 2015

Running the above git config command will make the following entry in ~/.gitconfig

[core]
    excludesfile = c:/Users/me/.gitignore

You can then put lines like the following in ~/.gitignore to ignore emacs backup files

*.*~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment