Skip to content

Instantly share code, notes, and snippets.

@jim-clark
Created September 16, 2023 16:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jim-clark/73ae470c3ea891206c6aa0122f97c809 to your computer and use it in GitHub Desktop.
Save jim-clark/73ae470c3ea891206c6aa0122f97c809 to your computer and use it in GitHub Desktop.
# This is a list of rules for ignoring files in every Git repository on your
# computer. See https://help.github.com/articles/ignoring-files

# GitHub maintains a repository of items that can generally be gitignored
# globally safely at: https://github.com/github/gitignore/tree/main/Global

# GitHub also maintains a repository of language-specific items that should
# typically be ignored on a per-project basis with a .gitignore in that
# project's root directory.
# This repository can be found at: https://github.com/github/gitignore

###############################################################################
#   The items in this section are generally safe be globally gitignored and   #
#         are very unlikely to cause projects to break if left here.          #
###############################################################################

#================================= Archives ==================================#
#                Unpack these files and commit the raw source.                #
#                git has its own built in compression methods.                #

#----------------------------- Compressed Files ------------------------------#
*.7z
*.jar
*.rar
*.zip
*.gz
*.gzip
*.tgz
*.bzip
*.bzip2
*.bz2
*.xz
*.lzma
*.cab
*.xar

#--------------------------- Packing-only formats ----------------------------#
*.iso
*.tar

#------------------------ Package management formats -------------------------#
*.dmg
*.xpi
*.gem
*.egg
*.deb
*.rpm
*.msi
*.msix
*.msm
*.msp
*.txz

#===================== Operating System Generated Files ======================#
#----------------------------------- Linux -----------------------------------#
# Temporary files created as backups by text editors or similar programs #
*~

# Temporary files created if a process is still accessing a deleted file #
.fuse_hidden*
.nfs*

# KDE directory preferences #
.directory

# Linux trash folder which might appear on any partition or disk #
.Trash-*

#----------------------------------- macOS -----------------------------------#
# General #
.DS_Store
.DS_Store?
.AppleDouble
.LSOverride

# Thumbnails #
._*

# Files that might appear in the root of a volume #
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share #
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

#---------------------------------- Windows ----------------------------------#
# Windows thumbnail cache files #
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file #
*.stackdump

# Folder config file #
[Dd]esktop.ini

# Recycle Bin used on file shares #
$RECYCLE.BIN/

# Windows shortcuts #
*.lnk

#=================================== Tags ====================================#
#---- Ignore tags created by etags, ctags, gtags (GNU global) and cscope -----#
tags

#============================ Visual Studio Code =============================#
#----------------------------- .vscode Directory -----------------------------#
.vscode/

#------------------- Local History for Visual Studio Code --------------------#
.history/

#=========================== Compiled Source Code ============================#
#-------------------------------- Class Files --------------------------------#
*.class

#----------------------------- Dynamic Libraries -----------------------------#
*.so
*.dylib
*.dll

#-------------------------------- Executables --------------------------------#
*.com
*.exe
*.out
*.app

#------------------------------- Object Files --------------------------------#
*.slo
*.lo
*.o
*.obj

#================================== Django ===================================#
#----------------------------------- Logs ------------------------------------#
*.log

#--------------------------- Local django settings ---------------------------#
local_settings.py

#------------------------------- SQL database --------------------------------#
db.sqlite3
db.sqlite3-journal

#============================== Node and Python ==============================#
.env

#=================================== Node ====================================#
node_modules

#================================== Python ===================================#
*.py[cd]
__pycache__/
.python-version

#================================== ESLint ===================================#
.eslintcache

#================================== Testing ==================================#
.rspec
capybara-*.html
coverage
pickle-email-*.html
rerun.txt
spec/reports
spec/tmp
test/tmp
test/version_tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment