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 user.name
, user.email
.
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.
DCO Failures¶
If you miss series of commits, you can use the rebase with -i | --interactive
to edit and append into.
Example
If you have 4 commits in your history.
Info
We will enable the Probot/DCO on Github. For more details about the DCO on Github, please read the article here.