Git Config
Git の global 設定。commit message template と gitignore を共通化している。
Commit message template
Section titled “Commit message template”Conventional Commits 形式の template を ~/.config/git/message に定義。git commit 時にテンプレートが表示される。
<type>[(scope)]: <description>Type 一覧
Section titled “Type 一覧”| Type | 用途 |
|---|---|
feat | 新機能 |
fix | bug fix |
docs | document のみの変更 |
style | formatting, semicolon など |
refactor | 機能変更を伴わないコード修正 |
perf | performance 改善 |
test | test の追加・修正 |
chore | build, CI, 依存関係の更新 |
Breaking Change
Section titled “Breaking Change”type の後に ! を付けて breaking change を示す。
feat(auth)!: implement OAuth2 authenticationfooter に BREAKING CHANGE: を記述して詳細を説明。
Global gitignore
Section titled “Global gitignore”~/.config/git/ignore で全 repository 共通の ignore pattern を定義。
OS generated
Section titled “OS generated”.DS_StoreThumbs.db._*Version managers
Section titled “Version managers”.go-version.node-version.python-version.ruby-version.tool-versions.mise.toml.idea/.vscode/*.swp*.swoEnvironment / Secrets
Section titled “Environment / Secrets”.env.env.local.envrcLocal config
Section titled “Local config”makefile.localdocker-compose.local.ymlconfig.local.**.local.json*.local.yamlDependencies
Section titled “Dependencies”node_modules/vendor/.bundle/Claude Code
Section titled “Claude Code”**/.claude/settings.local.json**/.claude/telemetry/設定ファイル
Section titled “設定ファイル”| File | 内容 |
|---|---|
~/.config/git/config.local | user.name, user.email |
~/.config/git/message | commit template |
~/.config/git/ignore | global gitignore |