Skip to content

Instantly share code, notes, and snippets.

@everdimension
Last active June 25, 2024 21:02
Show Gist options
  • Save everdimension/28c998a5929452c6d55522a335c37c72 to your computer and use it in GitHub Desktop.
Save everdimension/28c998a5929452c6d55522a335c37c72 to your computer and use it in GitHub Desktop.
Global gitignore
# Editor files #
################
.vim
.vscode
.idea
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
*.tgz
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

Global gitignore

Download .gitignore file from this gist and put it in your home directory

Next, make git use this file:

Mac:
git config --global core.excludesfile ~/.gitignore
Windows:
git config --global core.excludesfile %USERPROFILE%\.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment