This project enforces the Developer Certificate of Origin (DCO) on all contributions. The DCO is a certification that you wrote the contribution or have the right to submit it under an open source license.
You must add a Signed-off-by
line to every commit message. The easiest way is to use the -s
flag when committing:
git commit -s -m "Add new feature"
Or you can manually add to your commit message:
Signed-off-by: Random Developer <[email protected]>
- Configure git with your name and email:
git config --global user.name "Your Name" git config --global user.email "[email protected]"
-
Always use the
-s
flag when committing:git commit -s -m "Your commit message"
-
If you forgot to sign your last commit:
git commit --amend -s
-
To sign-off multiple commits in a branch:
git rebase --signoff main
-
If your pull request is marked as "DCO failed":
- Check that your commits are signed-off
- The email used in the
Signed-off-by
line must match your GitHub email - You may need to amend your commits with the correct email
-
If you need to fix multiple commits:
git rebase -i HEAD~n # n is the number of commits to fix # Mark commits as 'edit' in the interactive rebase # For each commit: git commit --amend -s --no-edit git rebase --continue