generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes in Include steps to sign off commits
Signed-off-by: Roshan Goswami <[email protected]>
- Loading branch information
1 parent
3bcb544
commit 9718d9c
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,14 +111,14 @@ To add the required sign-off to your commits, follow these steps: | |
|
||
1. Ensure Git is Configured with Your Name and Email | ||
|
||
Your Git configuration must have your correct name and email address, as they will be used to generate the sign-off message. To configure Git, run the following commands: | ||
Your Git configuration must have your correct name and email address, as they will be used to generate the sign-off message. To configure Git, run the following commands: | ||
``` | ||
git config --global user.name "Your Name" | ||
git config --global user.email "[email protected]" | ||
``` | ||
2. Use the -s or --signoff Option in Your Commit | ||
|
||
When making a commit, you must use the -s or --signoff option to add the sign-off line. This will append the following line to your commit message: | ||
When making a commit, you must use the -s or --signoff option to add the sign-off line. This will append the following line to your commit message: | ||
``` | ||
Signed-off-by: Your Name <[email protected]> | ||
``` | ||
|
@@ -131,15 +131,15 @@ This ensures that your contribution complies with the DCO. | |
|
||
3. Verify Your Sign-Off | ||
|
||
To verify that your commit has the sign-off, you can inspect your commit log: | ||
To verify that your commit has the sign-off, you can inspect your commit log: | ||
``` | ||
git log -1 | ||
``` | ||
The last commit should contain a Signed-off-by line that matches your name and email. | ||
|
||
4. Amending a Commit Without Sign-Off | ||
|
||
If you've already made a commit but forgot to sign off, you can amend the commit with the sign-off using the following command: | ||
If you've already made a commit but forgot to sign off, you can amend the commit with the sign-off using the following command: | ||
``` | ||
git commit --amend --signoff | ||
``` | ||
|