Skip to content

Instantly share code, notes, and snippets.

@joshuamabina
Last active December 30, 2025 01:26
Show Gist options
  • Select an option

  • Save joshuamabina/0f8cec58a0ffe62acb80014052ba3c66 to your computer and use it in GitHub Desktop.

Select an option

Save joshuamabina/0f8cec58a0ffe62acb80014052ba3c66 to your computer and use it in GitHub Desktop.
Universal .gitignore for modern projects
# ====================
# System / OS files
# ====================
.DS_Store
Thumbs.db
*.swp
*.swo
# ====================
# Vim
# ====================
*.swp
*.swo
*.swn
*.un~
*.bak
*.tmp
*.vim~
Session.vim
*.vimundo
*.vimswap
*.view
# ====================
# Environment / Secrets
# ====================
.env
.env.*.local
.migrate_working_dir/
.vscode/
.atom/
# ====================
# IDE / Editor
# ====================
# IntelliJ / PhpStorm / Android Studio
*.iml
*.ipr
*.iws
.idea/
out/
# VS Code (comment if you want to track settings)
#.vscode/
# ====================
# Node.js / JavaScript / TypeScript
# ====================
node_modules/
dist/
build/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.pnp/
.pnp.js
*.tsbuildinfo
# React / Next.js
.next/
out/
coverage/
*.log
# ====================
# Dart / Flutter
# ====================
.dart_tool/
.flutter-plugins
.flutter-plugins-dependencies
.pub-cache/
.pub/
/build/
/coverage/
**/doc/api/
**/ios/Flutter/.last_build_id
# ====================
# PHP / Laravel
# ====================
vendor/
composer.lock
storage/*.key
storage/*.log
storage/debugbar/
bootstrap/cache/
# ====================
# Misc / Logs / Cache
# ====================
*.log
*.cache
*.tmp
*.bak
# ====================
# Version control
# ====================
.svn/
.hg/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment