File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff 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
1746This repository uses [ Google Java Format] ( https://github.com/google/google-java-format ) to format
You can’t perform that action at this time.
0 commit comments