Skip to content

Instantly share code, notes, and snippets.

@larodiel
Created March 4, 2023 05:48
Show Gist options
  • Save larodiel/ea0cd1c4532cc02c434eb541747520ca to your computer and use it in GitHub Desktop.
Save larodiel/ea0cd1c4532cc02c434eb541747520ca to your computer and use it in GitHub Desktop.
Global gitignore
# -----------------------------------------------------------------
# ver 1.1.0
#
# Change Log:
# 20160721 - First version
# 20171018 - error_log added
# -----------------------------------------------------------------
# ignore all files starting with . or ~
.*
~*
# backup
*.bkp
*_bkp
*.bak
# ignore OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
desktop.ini
# Map files
*.css.map
# ignore node/bower dependency directories
bower_components/
node_modules/
.sass-cache/
# ignore Editor files
*.sublime-project
*.sublime-workspace
*.komodoproject
*.idea
dwsync.xml
_notes/
.vscode/
.yarn/
.yarnrc.yml
# ignore log files and databases
*.log
*.sql
*.sqlite
error_log
**/*.log*
# ignore compiled files
*.com
*.class
*.dll
*.exe
*.o
*.so
# ignore packaged files
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Wordpress
wp-content/advanced-cache.php
wp-content/backup-db/
wp-content/backups/
wp-content/blogs.dir/
wp-content/cache/
wp-content/upgrade/
wp-content/wp-cache-config.php
/.htaccess
/license.txt
/readme.html
/sitemap.xml
/sitemap.xml.gz
package-lock.json
# -------------------------
# BEGIN Whitelisted Files
# -------------------------
# track these files, if they exist
!.gitignore
!.editorconfig
!.env
!README.md
!CHANGELOG.md
!composer.json
!package.json
!gulp.js
!grunt.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment