Skip to content

chore: harden .gitignore - #38

Merged
grobf5 merged 1 commit into
mainfrom
chore-gitignore-hardening
Nov 17, 2026
Merged

grobf5 merged 1 commit into
mainfrom
chore-gitignore-hardening

Conversation

@grobf5

@grobf5 grobf5 commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

Additions only: 28 new patterns; no existing rule changed or removed.

Area Added
Secrets *.env, *id_rsa*, *id_ed25519*, *id_ecdsa*, *_rsa, *_ed25519, *_ecdsa, *.p12, *.pfx, *.ppk
Build/debug /cmd/myf5/myf5, /cmd/myf5/myf5.exe (go build run inside cmd/myf5), __debug_bin* (VS Code/Delve)
Coverage/profiling *.coverprofile, *.prof, *.pprof
Go workspace go.work, go.work.sum, /vendor/
Logs/editor *.log, *.swp, *.swo, *~
Restored .devcontainer/: added in #32, dropped by the v1.1.0 merge (#33)
AI tooling .agents/, .agent/, _agents/, _agent/: the existing agents/ rule doesn't match the dotted/underscored folders

Why: .env/.env* only match names starting with .env, so files like lab.env were committable. id_rsa* only matches names starting with id_rsa, so keys like ephemeral_id_rsa were committable.

Verification:

  • git check-ignore -v -n on 18 sample paths (e.g. lab.env, ephemeral_id_rsa, client.p12, cmd/myf5/myf5, .agents/rules/x.md): 16 not ignored before, all 18 ignored after.
  • git ls-files -ci --exclude-standard is empty, so no tracked file becomes ignored.

Add ignore rules for secrets, build/debug outputs, Go workspace files,
logs, editor swap files and AI tooling folders. Additions only.

- secrets: *.env, *id_rsa*, *id_ed25519*, *id_ecdsa*, *_rsa, *_ed25519,
  *_ecdsa, *.p12, *.pfx, *.ppk
- build/debug: /cmd/myf5/myf5, /cmd/myf5/myf5.exe, __debug_bin*
- coverage/profiling: *.coverprofile, *.prof, *.pprof
- Go workspace: go.work, go.work.sum, /vendor/
- logs/editor: *.log, *.swp, *.swo, *~
- restore .devcontainer/ (added in #32, dropped by the v1.1.0 merge #33)
- AI tooling: .agents/, .agent/, _agents/, _agent/
@grobf5
grobf5 merged commit b1995af into main Nov 17, 2026
12 checks passed
@grobf5
grobf5 deleted the chore-gitignore-hardening branch November 17, 2026 04:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant