From: Remi Gacogne Date: Mon, 2 Jun 2025 09:13:53 +0000 (+0200) Subject: Also mention `git commit --amend --signoff` X-Git-Tag: rec-5.4.0-alpha1~278^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4151525e36c6d5eb27839180dbc3fc143a0fce6;p=thirdparty%2Fpdns.git Also mention `git commit --amend --signoff` Signed-off-by: Remi Gacogne --- diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2bc3d04bc4..3dfebf072a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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