Skip to content

Commit 0860e77

Browse files
Copilotjaydeluca
andauthored
docs: document DCO sign-off requirement for contributions (#1937)
--------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jaydeluca <7630696+jaydeluca@users.noreply.github.com>
1 parent e6eb2f9 commit 0860e77

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

CONTRIBUTING.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,35 @@ Prometheus uses GitHub to manage reviews of pull requests.
1212
This will avoid unnecessary work and surely give you and us a good deal
1313
of inspiration.
1414

15+
## Signing Off Commits
16+
17+
Every commit must include a `Signed-off-by` line, as required by the
18+
[Developer Certificate of Origin (DCO)](https://developercertificate.org/).
19+
20+
Sign off each commit by passing `--signoff` (or `-s`) to `git commit`:
21+
22+
```bash
23+
git commit --signoff -m "Your commit message"
24+
```
25+
26+
To sign off only the most recent commit, use `--amend`:
27+
28+
```bash
29+
git commit --amend --signoff --no-edit
30+
```
31+
32+
To sign off multiple commits, rebase (replace `N` with the number of commits):
33+
34+
```bash
35+
git rebase --signoff HEAD~N
36+
```
37+
38+
Then force-push the branch:
39+
40+
```bash
41+
git push --force-with-lease
42+
```
43+
1544
## Formatting
1645

1746
This repository uses [Google Java Format](https://github.com/google/google-java-format) to format

0 commit comments

Comments
 (0)