Files
gh-doarakko-dotfiles-claude/commands/commit.md
2025-11-29 18:23:35 +08:00

24 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# commitメッセージを作成
現在の変更をコミットし、自動的にリモートブランチにプッシュします。
## 実行手順
1. `git status`でファイルを確認
2. [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/)に従ってコミットを実行
3. 自動的に`git push`でリモートブランチに反映
## 形式の指定
- type(scope): subject の形式に従う
- タイトルは50文字以内、本文は72文字程度で改行
- 動詞は原形を使用add, fix, updateなど
- scope は原則記述するが、適切なものがない場合は省略可
- コミットメッセージは小文字で始める
## 実装とテストが含まれる場合の優先ルール
- 実装とテストコードが含まれている場合、typeはtestよりもfeat/fixを優先する
## プッシュの動作
- コミット成功後、自動的に`git push`を実行
- ブランチがリモートに存在しない場合は`git push -u origin <branch_name>`を実行
- プッシュエラー時は適切なエラーメッセージを表示