From a54c54029090dd72bfa52d81eeb2d5c4cc885526 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 7 Mar 2020 09:49:29 +0000 Subject: [PATCH] Document how to add Signed-off-by to all commits automatically Signed-off-by: Graham --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 60b6ac6f..b2cd7dcd 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,15 @@ certify that contributors agree to license their code under OpenRS2's license requirements of the DCO, a `Signed-off-by:` line must be added to the Git commit message by passing `--signoff` to the `git commit` invocation. +If you intend to make a large number of contributions, run the following +commands from the repository root to add `Signed-off-by:` to all your commit +messages by default: + +``` +echo -e "\n\nSigned-off-by: $(git config user.name) <$(git config user.email)>" > .git/commit-template +git config commit.template .git/commit-template +``` + The full text of the DCO is reproduced below: ```