[object Object]

← back to Jill Website

.gitignore: broaden to exclude snapshot/backup/swap files

60877597199023c1cd9be2336a966f2992073d1f · 2026-05-19 21:15:11 -0700 · SteveStudio2

Prevents editor/sed/patch artifacts (.bak, .pre-*, .orig, .rej, .swp,
~) from being staged or served — defense-in-depth alongside the
runtime 404-guard middleware.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Files touched

Diff

commit 60877597199023c1cd9be2336a966f2992073d1f
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date:   Tue May 19 21:15:11 2026 -0700

    .gitignore: broaden to exclude snapshot/backup/swap files
    
    Prevents editor/sed/patch artifacts (.bak, .pre-*, .orig, .rej, .swp,
    ~) from being staged or served — defense-in-depth alongside the
    runtime 404-guard middleware.
    
    Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---
 .gitignore | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.gitignore b/.gitignore
index 327bab5..fecf617 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,12 @@ dist/
 tmp/
 .DS_Store
 build/
+
+# Snapshot / backup / swap files — never ship via static root
+*.bak
+*.bak.*
+*.pre-*
+*.orig
+*.rej
+*.swp
+*~

← 53b173b security: scrub hardcoded admin password from CLAUDE.md + ad  ·  back to Jill Website  ·  security: 404-guard snapshot/backup paths in both server ent 5f718fe →