From 6649762acad77cb4539d74d851f04b907d308742 Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Thu, 26 Mar 2026 16:22:05 +0000 Subject: [PATCH] Improve .gitignore Make it more comprehensive and tells it to ignore senstive files, OS artifaces and editor-specific files. Signed-off-by: Lucas Alvares Gomes --- .gitignore | 52 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d98cfcb..aa4f695 100644 --- a/.gitignore +++ b/.gitignore @@ -1,16 +1,17 @@ -# Binaries +# Binaries for programs and plugins *.exe *.exe~ *.dll *.so *.dylib -# Test binary +# Test binary, built with `go test -c` *.test -# Coverage output +# Output of the go coverage tool *.out coverage.html +coverage.txt # Go workspace file go.work @@ -23,9 +24,54 @@ vendor/ /bin/ /dist/ +# Dependency directories +/go.sum + # IDE / editor .idea/ .vscode/ *.swp *.swo *~ +*.sublime-* + +# OS-specific files +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# Temporary files +*.tmp +*.temp +*.log +*.bak +*.orig + +# Archive files +*.zip +*.tar +*.tar.gz +*.tgz +*.rar + +# Security / Secrets +*.pem +*.key +*.crt +*.p12 +.env +.env.* +secrets/ +credentials/ + +# Documentation builds +/site/ +/docs/_build/ + +# Debug +debug +__debug_bin*