Skip to content

Instantly share code, notes, and snippets.

@simonrjones
Last active Aug 5, 2022
Embed
What would you like to do?
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

simonrjones commented Jul 9, 2019

Thanks Matt, have edited my original comment :)

@simonrjones
Copy link
Author

simonrjones commented Aug 5, 2022

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