Gitignore

Notes on using .gitignore

Old Typewritter
Old Typewritter

A starting .gitignore for use in git repositories

#-- .gitignore

# This file is starting `.gitignore`. This file specifies files and folders for git 
# to not track. It ignores all files of certian patters, with the exclusion of certian
# files.
# To find out more about `.gitignore` check out https://git-scm.com/docs/gitignore


# ----------------------------[ DOT FILES ]------------------------------------
# By Default, ignore all dot files `.*`, except for those with `!`
.*
!.gitignore
!.github
!.devcontainer
!.vscode
!.gitmodules


# ---------------------------[ UNDERSCOE FILES ]--------------------------------
# By default, ignore all underscore files `_*`, except for those with `!`
_*


# ----------------------------[ LOG FILES ]------------------------------------
# By default, ignore all logs, except for those with '`!`
*.log
logs/


# ----------------------------[ RUST FILES ]-----------------------------------
# Files generated by cargo
/target/
debug/
# Cargo.lock # Include this if it's a library, exclude if it's a binary

# These are backup files generated by rustfmt
**/*.rs.bk

# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb

# Generated by cargo mutants - contains mutation testing data
**/mutants.out*/


# -----------------------------[ IDE FILES ]-----------------------------------
# IDE and editor files
# RustRover / IntelliJ IDEA
*.iml
*.iws

# Emacs
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# Vim
*.swp
*.swo
*~

# RustRover
#  JetBrains specific template is maintained in a separate JetBrains.gitignore that can
#  be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
#  and can be added to the global gitignore or merged into this file.  For a more nuclear
#  option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

# ----------------------------[ DATABASE FILES ]-------------------------------
# Database files
*.db
*.sqlite
*.sqlite3


# ---------------------------[ TEMPORARY FILES ]-------------------------------

# Temporary files
*.tmp
*.temp


# -----------------------------[ ARCHIVE FILES ]-------------------------------

# Archives
*.zip
*.gz
*.tar
*.tgz
*.rar
*.7z


# ---------------------------[ OS GENERATED FILES ]-----------------------------
# Windows OS generated files
Thumbs.db
ehthumbs.db

# MacOS
.DS_Store
.AppleDouble
.LSOverride

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# --------------------------[ TEST GENERATED FILES ]----------------------------

# Coverage directory used by tools like istanbul
coverage/
*.lcov

# Test artifacts
test-results/
test-outputs/

# Test artifacts
test-results/
test-outputs/
Last updated:
Tags: Git