Skip to content

Instantly share code, notes, and snippets.

@oleg-koval
Created January 22, 2018 00:27
Show Gist options
  • Save oleg-koval/4318ac5e92875fa2714ddeb51764853f to your computer and use it in GitHub Desktop.
Save oleg-koval/4318ac5e92875fa2714ddeb51764853f to your computer and use it in GitHub Desktop.
Manage global gitignore
# Vim swap files #
##################
.*.sw?
# Pow and Powder config #
#########################
/.pow*
# RVM and rbenv #
#################
/.rvmrc
/.rbenv-version
# 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
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# IDE & Editors, code coverage #
################################
.sonarlint
*.sublime-workspace

1. Create .gitignore_global file

touch ~/.gitignore_global

2. Edit created file

3. Save to git config

git config --global core.excludesfile ~/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment