Skip to content

Instantly share code, notes, and snippets.

@simonrjones
Last active August 5, 2022 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonrjones/b20e06dfed3b52c8c17b74cda74bcaa7 to your computer and use it in GitHub Desktop.
Save simonrjones/b20e06dfed3b52c8c17b74cda74bcaa7 to your computer and use it in GitHub Desktop.
Global gitignore settings.
# Standard ignore rules
# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# IDEs
nbproject
.komodotools
.buildpath
.project
.settings
.idea
*.sublime-project
*.sublime-workspace
@simonrjones
Copy link
Author

simonrjones commented Jan 28, 2019

Save this file to ~/.gitignore

You can then set this as your global gitignore via: git config --global core.excludesfile ~/.gitignore

Also see https://help.github.com/articles/ignoring-files/#create-a-global-gitignore

@mbklnd
Copy link

mbklnd commented Jan 29, 2019

A small change:
I think the command you run should be git config --global core.excludesfile ~/.gitignore

@simonrjones
Copy link
Author

Thanks Matt, have edited my original comment :)

@simonrjones
Copy link
Author

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