From fc25fc3017b26c070603427d688d1031ceaad8c2 Mon Sep 17 00:00:00 2001 From: Chaiyapruek Muangsiri Date: Mon, 9 Oct 2023 17:00:37 +0800 Subject: [PATCH] fix broken contributing guide Signed-off-by: Chaiyapruek Muangsiri --- CONTRIBUTING.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 377fa70bd..29dbcac9b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -95,7 +95,7 @@ Unless the issue specifically mentions a branch, please create your feature bran For example: -``` +```bash # Make sure you have the most recent changes to main git checkout main git pull @@ -177,7 +177,7 @@ have the right to contribute the code you are submitting to the project. You sign-off by adding the following to your commit messages: -``` +```bash Author: Your Name Date: Thu Feb 2 11:41:15 2018 -0800 @@ -191,12 +191,16 @@ be rejected by the automated DCO check. Git has a `-s` command line option to do this automatically: - git commit -s -m 'This is my commit message' +``` +git commit -s -m 'This is my commit message' +``` If you forgot to do this and have not yet pushed your changes to the remote repository, you can amend your commit with the sign-off by running - git commit --amend -s +``` +git commit --amend -s +``` ## The life of a pull request