How to sign-off commits¶
We require a sign-off commit message in the following format on each commit in pull request.
Creating your signoff¶
Git has a
-s | --sign-off command line option to append the message automatically.
git commit --signoff --message 'This is a commit message' git commit -s -m 'This is a commit message'
This will use your default value on your git configure in
Setup your name:
Setup your mail:
How to amend a sign-off¶
If you miss your sign-off on the last commit, you can amend the commit and then push to Github.
If you miss series of commits, you can use the rebase with
-i | --interactive to edit and append into.
If you have 4 commits in your history.
We will enable the Probot/DCO on Github. For more details about the DCO on Github, please read the article here.
Last update: 2022年6月17日