Add comprehensive .gitignore for dotfiles repository
- Protect sensitive information (SSH keys, API tokens, credentials) - Exclude machine-specific files (logs, profiles, backups) - Filter system artifacts (OS files, editor temps, package caches) - Maintain clean repository while preserving templates and docs 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
261
.gitignore
vendored
Normal file
261
.gitignore
vendored
Normal file
@@ -0,0 +1,261 @@
|
||||
# Dotfiles Repository .gitignore
|
||||
|
||||
# ========================================
|
||||
# Sensitive Information
|
||||
# ========================================
|
||||
|
||||
# SSH keys and certificates
|
||||
*.pem
|
||||
*.key
|
||||
*.crt
|
||||
*.p12
|
||||
*.pfx
|
||||
id_rsa*
|
||||
id_ed25519*
|
||||
known_hosts*
|
||||
|
||||
# API keys and tokens
|
||||
.env
|
||||
.env.*
|
||||
*.token
|
||||
*.api_key
|
||||
auth.json
|
||||
credentials.*
|
||||
|
||||
# Personal configuration overrides
|
||||
local.conf
|
||||
personal.conf
|
||||
.personal/
|
||||
|
||||
# ========================================
|
||||
# Machine-Specific Files
|
||||
# ========================================
|
||||
|
||||
# Current machine profile (generated)
|
||||
.machine_profile
|
||||
.current_profile
|
||||
|
||||
# Installation/sync logs
|
||||
*.log
|
||||
.package.log
|
||||
.profile.log
|
||||
.sync.log
|
||||
.install.log
|
||||
|
||||
# Backup directories (created during installation)
|
||||
*_backup_*/
|
||||
backups/
|
||||
.backup/
|
||||
|
||||
# Cache and temporary files
|
||||
.cache/
|
||||
.tmp/
|
||||
*.tmp
|
||||
*.temp
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# ========================================
|
||||
# System-Specific Files
|
||||
# ========================================
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
._*
|
||||
|
||||
# Windows
|
||||
Thumbs.db
|
||||
ehthumbs.db
|
||||
Desktop.ini
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Linux
|
||||
.directory
|
||||
.Trash-*/
|
||||
|
||||
# ========================================
|
||||
# Editor and IDE Files
|
||||
# ========================================
|
||||
|
||||
# Vim
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
.netrwhist
|
||||
|
||||
# VS Code
|
||||
.vscode/
|
||||
*.code-workspace
|
||||
|
||||
# Sublime Text
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
|
||||
# JetBrains IDEs
|
||||
.idea/
|
||||
*.iml
|
||||
|
||||
# Emacs
|
||||
*~
|
||||
\#*\#
|
||||
/.emacs.desktop
|
||||
/.emacs.desktop.lock
|
||||
*.elc
|
||||
auto-save-list
|
||||
tramp
|
||||
.\#*
|
||||
|
||||
# ========================================
|
||||
# Package Manager Files
|
||||
# ========================================
|
||||
|
||||
# Node.js
|
||||
node_modules/
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.npm
|
||||
.yarn/
|
||||
|
||||
# Python
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
.Python
|
||||
pip-log.txt
|
||||
pip-delete-this-directory.txt
|
||||
|
||||
# Ruby
|
||||
.bundle/
|
||||
vendor/bundle/
|
||||
*.gem
|
||||
|
||||
# ========================================
|
||||
# Runtime and State Files
|
||||
# ========================================
|
||||
|
||||
# Process IDs
|
||||
*.pid
|
||||
|
||||
# Lock files
|
||||
*.lock
|
||||
.lock
|
||||
|
||||
# Session files
|
||||
.session
|
||||
*.session
|
||||
|
||||
# History files (may contain sensitive commands)
|
||||
*_history
|
||||
.bash_history
|
||||
.zsh_history
|
||||
.python_history
|
||||
.mysql_history
|
||||
.psql_history
|
||||
|
||||
# ========================================
|
||||
# Application-Specific
|
||||
# ========================================
|
||||
|
||||
# Git (if nested repos exist)
|
||||
.git/
|
||||
*.orig
|
||||
|
||||
# Docker
|
||||
.dockerignore
|
||||
docker-compose.override.yml
|
||||
|
||||
# Terraform
|
||||
*.tfstate
|
||||
*.tfstate.*
|
||||
.terraform/
|
||||
terraform.tfvars
|
||||
|
||||
# AWS
|
||||
.aws/credentials
|
||||
.aws/config
|
||||
|
||||
# GPG
|
||||
*.gpg
|
||||
*.asc
|
||||
.gnupg/
|
||||
|
||||
# ========================================
|
||||
# Custom Dotfiles Ignores
|
||||
# ========================================
|
||||
|
||||
# User customizations that shouldn't be shared
|
||||
custom/
|
||||
local/
|
||||
private/
|
||||
|
||||
# Machine-specific package lists
|
||||
packages.local.yaml
|
||||
profiles.local.yaml
|
||||
|
||||
# Test files
|
||||
test_*
|
||||
*_test
|
||||
*.test
|
||||
|
||||
# Experimental configurations
|
||||
experimental/
|
||||
draft/
|
||||
wip/
|
||||
|
||||
# Documentation builds
|
||||
_build/
|
||||
_site/
|
||||
.jekyll-cache/
|
||||
|
||||
# ========================================
|
||||
# Archive and Compressed Files
|
||||
# ========================================
|
||||
|
||||
*.7z
|
||||
*.dmg
|
||||
*.gz
|
||||
*.iso
|
||||
*.jar
|
||||
*.rar
|
||||
*.tar
|
||||
*.zip
|
||||
*.bz2
|
||||
*.xz
|
||||
|
||||
# ========================================
|
||||
# Ignore patterns for specific tools
|
||||
# ========================================
|
||||
|
||||
# Oh My Zsh custom plugins/themes (if not maintained here)
|
||||
zsh/oh-my-zsh/custom/*
|
||||
!zsh/oh-my-zsh/custom/.gitkeep
|
||||
|
||||
# Vim plugins managed by package managers
|
||||
vim/bundle/
|
||||
vim/pack/
|
||||
vim/.netrwhist
|
||||
|
||||
# Homebrew
|
||||
Brewfile.lock.json
|
||||
|
||||
# ========================================
|
||||
# Allow these files (override above patterns)
|
||||
# ========================================
|
||||
|
||||
# Allow example/template files
|
||||
!*.example
|
||||
!*.template
|
||||
!*.sample
|
||||
|
||||
# Allow documentation
|
||||
!README.*
|
||||
!CHANGELOG.*
|
||||
!LICENSE*
|
||||
!CONTRIBUTING.*
|
||||
|
||||
# Allow configuration templates
|
||||
!config.template.*
|
||||
!.gitconfig.template
|
||||
Reference in New Issue
Block a user