kstack-git

Installation
SKILL.md

kstack-git

Git の設定ファイルと、commit・PR の作り方と merge の規約。理由を理解した上で適用すること。

.gitignore は repo root に 1 つだけ置く

サブディレクトリ用の除外も、そのディレクトリに .gitignore を作らず root の .gitignore に書く。スラッシュを末尾にしか含まないパターン(.terraform/、*.tfstate)はどの階層にも効く。特定のディレクトリだけに効かせるときは infra/**/.terraform/ のようにパスを付ける。

# Bad: stack ごとに .gitignore が散らばる
infra/aws/.gitignore          # .terraform/
infra/cloudflare/.gitignore   # .terraform/ と *.tfstate*

# Good: root の .gitignore にまとめる
# .gitignore
.terraform/
*.tfstate
*.tfstate.*
Installs
10
First Seen
9 days ago