Skip to content

Instantly share code, notes, and snippets.

@huaminghuangtw
Last active August 31, 2024 04:59
Show Gist options
  • Save huaminghuangtw/8539bb266763caa1d789919875e64afb to your computer and use it in GitHub Desktop.
Save huaminghuangtw/8539bb266763caa1d789919875e64afb to your computer and use it in GitHub Desktop.
My .gitignore Template. For more use cases please visit: https://github.com/github/gitignore
# Ignore everything
*
# Unignore all files with extensions
!*.*
# Unignore all directories
!*/
# === Above combination will ignore all files without extension (e.g., Linux Executable Files) === #
*.o
*.out
*.exe
*.dll
# Ignore all dot files
.*
# Exception
!.gitignore
!.github
# VSCode
.vscode/
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
.history/
# Python
__pycache__/
*.pyc
# Environments
.env
.venv
env/
venv/
ENV/
# Jupyter Notebook
.ipynb_checkpoints
# MATLAB
*.asv
*.m~
*.autosave
*.slxc
# Vim
*.swp
*.swo
# Backup files
*.bak
*~
# OS generated files (should be located in ~/.gitignore)
desktop.ini
Thumbs.db
.DS_Store
*.swp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment