You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,35 @@ Prometheus uses GitHub to manage reviews of pull requests.
12
12
This will avoid unnecessary work and surely give you and us a good deal
13
13
of inspiration.
14
14
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
+
15
44
## Formatting
16
45
17
46
This repository uses [Google Java Format](https://github.com/google/google-java-format) to format
0 commit comments