No .gitignore + tracked node_modules (742) and dist (39) — build artifacts and missing gitignore #19

Closed
opened 2026-05-13 02:07:29 +00:00 by Mark · 1 comment
Owner

Problem

This repo has no .gitignore at all, and 781 tracked files that should never have been committed:

Issue Count
No .gitignore —
node_modules/ 742 files
dist/ 39 files

Impact

  • Every npm install generates 742+ tracked changes
  • Build output (dist/) is always dirty
  • No gitignore means ANY generated artifact will get tracked

Fix

Create a .gitignore with standard Node.js patterns, then untrack artifacts:

# Create .gitignore
cat > .gitignore << 'EOF'
node_modules/
dist/
.vite/
.env
.DS_Store
*.log
EOF

# Untrack
git rm --cached -r node_modules/
git rm --cached -r dist/
git add .gitignore
git commit -m "chore: add .gitignore, untrack node_modules/ and dist/"
git push origin main
## Problem This repo has **no `.gitignore`** at all, and **781 tracked files** that should never have been committed: | Issue | Count | |-------|-------| | No `.gitignore` | — | | `node_modules/` | 742 files | | `dist/` | 39 files | ## Impact - Every `npm install` generates 742+ tracked changes - Build output (`dist/`) is always dirty - No gitignore means ANY generated artifact will get tracked ## Fix Create a `.gitignore` with standard Node.js patterns, then untrack artifacts: ```bash # Create .gitignore cat > .gitignore << 'EOF' node_modules/ dist/ .vite/ .env .DS_Store *.log EOF # Untrack git rm --cached -r node_modules/ git rm --cached -r dist/ git add .gitignore git commit -m "chore: add .gitignore, untrack node_modules/ and dist/" git push origin main ```
Author
Owner

Closed by pipeline sweep — no code changes required (blocked:no-changes). Fixer now auto-closes this case going forward.

Closed by pipeline sweep — no code changes required (blocked:no-changes). Fixer now auto-closes this case going forward.
Mark closed this issue 2026-05-20 19:38:58 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/tokengenerator#19
No description provided.