Skip to content
Junya Nakahodo edited this page Apr 13, 2022 · 3 revisions

Git commit template

コミットメッセージのテンプレートを追加する

リポジトリpull後、以下実行

$ git config commit.template .gitmessage

Git pre-commit

参考

コミット時、clang-formatに沿ってコーディングされているかチェックする。

沿っていない場合、コミットに失敗する。 修正後再びコミットする。

リポジトリpull後、以下実行

$ git config core.hooksPath ./config

Clone this wiki locally