12
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

git > commit message / signoff > Signed-off-by:を付ける > git commit --signoff

Last updated at Posted at 2015-04-13

githubのプロジェクトをいくつか見ている中で、commit messageに以下の記載があることに気付いた。

Signed-off-by: XXXX XXXX <xxx@xxx.com>
Acked-by: XXXX XXX <xxx@xxx.com>
Tested-by: XXX XXX <xxx@xxx.com>

この中で「Signed-off-by」は「誰が作業したか」わかるような署名のようだ。

SO > What is the Sign Off feature in Git for?

コミットする時に--signoffをつければ自動的に「Signed-off-by:」の行が追加されるとのこと。

$git commit --signoff

コミットする人と作業者が違う時や、複数人がsign-offした時などに有効なのだろうか?

Gerrit2 > Signed-off-byなどの説明

patchなどに関係してcommit messageに誰が作業したか残しておきたい時に使うようだ。

12
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?