Skip to content

Instantly share code, notes, and snippets.

@matsuu
Forked from lisawolderiksen/git-commit-template.md
Last active January 15, 2022 11:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsuu/0af20f5f2daa6d556bf22de9fbfa7952 to your computer and use it in GitHub Desktop.
Save matsuu/0af20f5f2daa6d556bf22de9fbfa7952 to your computer and use it in GitHub Desktop.
git config --global commit.template ~/.gitmessage
# 件名: 概要、命令形、大文字で始めるがピリオドは使わない
# 半角幅50文字以内におさめる。50文字はここまで-->#
# 件名と本文の間に空白行を入れる
# 本文: howではなくwhatとwhyを書くこと。issue IDなども記載する。
# 1行あたり半角幅72文字で折り返す。72文字はここまで------------------->#
# 最後に空白行を入れてからこのコミットの共作者を Co-authored-by として列挙する。
# Co-authored-by: Taro Git <taro@example.com>
#
# 参考: Using Git Commit Message Templates to Write Better Commit Messages
# https://gist.github.com/lisawolderiksen/a7b99d94c92c6671181611be1641c733
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment