# Creating Gitattributes File

> Create a lean-package-validator compatible .gitattributes file in Laravel Boost projects; use when generating missing export-ignore entries or scaffolding a new .gitattributes file. Use when this capability is needed.

- Skill: `tomevault-io/creating-gitattributes-file` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/creating-gitattributes-file`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/creating-gitattributes-file/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/creating-gitattributes-file

---


# Create .gitattributes with lean-package-validator

Follow these steps from the repository root:

1. Run `./vendor/bin/lean-package-validator validate --create` to generate a .gitattributes file with all expected export-ignore entries.
2. If you want aligned export-ignore columns, add `--align-export-ignores`.
3. If you do not want the generated header comment, add `--omit-header`.
4. If a `.lpv` file exists, it will be used automatically; otherwise the default PHP preset is used.

If the command reports missing patterns, re-run with `--create` after verifying the repository root is correct.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/raphaelstolt) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

