Ignore files or directories

Ignore files or directories in Git — with three ready prompts, from the immediate task to the lasting pattern.

3prompt heights
Open it in the interactive atlas →

3 ready prompts

Written for the moment this actually comes up.

Execute — do the immediate task

+
Add a .gitignore entry so the entire logs directory and any .env files in project root are ignored,…
Add a .gitignore entry so the entire logs directory and any .env files in project root are ignored, and make sure existing tracked .env and logs/*.log files are removed from tracking first. Commit both the ignore file and the untracking change together with a message that references security and disk usage, then verify a fresh clone will not contain those files.

Improve — make it easier to accept

+
Before I present the ignore changes to the team, make it easy to approve. Put the ignored patterns…
Before I present the ignore changes to the team, make it easy to approve. Put the ignored patterns up top, show which files in the current tree would be affected, and flag any .env or config files that are currently tracked and may contain secrets. If secrets are present, recommend the immediate remediation steps and the minimal commit order to avoid exposing them in history.

Become — change the pattern

+
Every repo we inherit contains editor swap files, .DS_Store, and IDE settings that people keep…

We repeatedly forget to ignore IDE and OS files across repos.

Every repo we inherit contains editor swap files, .DS_Store, and IDE settings that people keep committing. It clutters PRs and causes noisy merges. Where are we failing in our onboarding or templates, and what one habit or repo-level setting would eliminate this recurring friction?

Next to this one

Other version control work people do in Git.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.