]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Also mention `git commit --amend --signoff`
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 2 Jun 2025 09:13:53 +0000 (11:13 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 12 Sep 2025 08:52:42 +0000 (10:52 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
CONTRIBUTING.md

index 2bc3d04bc435ee111dda3d790b2c1a048de9751c..3dfebf072ac75cb9a263981329ee3588be02b9bd 100644 (file)
@@ -84,7 +84,8 @@ If you have properly configured `user.name` and `user.email` in your `Git` confi
 git commit -s -m 'Commit message'
 ```
 
-If you already committed your changes, you can do a `git rebase` to add a sign-off to existing commits. For example, if your branch is based on the `master` one:
+If you already committed your changes, and you have only one commit on your branch, you can use `git commit --amend --signoff` to add a sign-off to the latest commit.
+If you have more than one commit on your branch, you can instead use `git rebase` to add a sign-off to existing commits. For example, if your branch is based on the `master` one:
 
 ```sh
 git rebase --signoff master