Skip to content

Instantly share code, notes, and snippets.

@skwashd
Last active August 23, 2022 08:55
Show Gist options
  • Save skwashd/6505e5bcea850ab9effac168c3369725 to your computer and use it in GitHub Desktop.
Save skwashd/6505e5bcea850ab9effac168c3369725 to your computer and use it in GitHub Desktop.
Global .gitignore configuration for PHP and Python developers
# Save this file as ~/.gitignore_global
# Add the following entry to ~/.gitconfig
#
# [core]
# excludesfile = /Users/dave/.gitignore_global
#
# Compiled source #
###################
*.class
*.dll
*.exe
*.o
*.so
__pycache__/
*.py[cod]
*$py.class
# Packages #
############
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
# Backup and temp files #
*.bak
.*.sw?
*.un~
# Patches, diffs etc
*.patch
*.diff
*.orig
*.rej
# Test coverage reports
.coverage
# IDEs
## vscode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
.history/
## IntelliJ
.idea/
## Sublime
*.sublime-project
*.sublime-workspace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment