diff --git a/content/github/committing-changes-to-your-project/creating-a-commit-on-behalf-of-an-organization.md b/content/github/committing-changes-to-your-project/creating-a-commit-on-behalf-of-an-organization.md index a84bef98b1c3..6d49572ebd85 100644 --- a/content/github/committing-changes-to-your-project/creating-a-commit-on-behalf-of-an-organization.md +++ b/content/github/committing-changes-to-your-project/creating-a-commit-on-behalf-of-an-organization.md @@ -26,7 +26,17 @@ Organization's can use the `name@organization.com` email as a public point of co ### Creating commits with an `on-behalf-of` badge on the command line -{% data reusables.pull_requests.commit-message-with-trailer-beginning %} +1. Type your commit message and a short, meaningful description of your changes. After your commit description, instead of a closing quotation, add two empty lines. + ```shell + $ git commit -m "Refactor usability tests. + > + > + ``` + {% tip %} + + **Tip:** If you're using a text editor on the command line to type your commit message, ensure there are two newlines between the end of your commit description and the `on-behalf-of:` commit trailer. + + {% endtip %} 2. On the next line of the commit message, type `on-behalf-of: @org `, then a closing quotation mark. diff --git a/content/github/committing-changes-to-your-project/creating-a-commit-with-multiple-authors.md b/content/github/committing-changes-to-your-project/creating-a-commit-with-multiple-authors.md index 0f1e8124bdd0..475a356cd986 100644 --- a/content/github/committing-changes-to-your-project/creating-a-commit-with-multiple-authors.md +++ b/content/github/committing-changes-to-your-project/creating-a-commit-with-multiple-authors.md @@ -39,7 +39,17 @@ You can use {% data variables.product.prodname_desktop %} to create a commit wit {% data reusables.pull_requests.collect-co-author-commit-git-config-info %} -{% data reusables.pull_requests.commit-message-with-trailer-beginning %} +1. Type your commit message and a short, meaningful description of your changes. After your commit description, instead of a closing quotation, add two empty lines. + ```shell + $ git commit -m "Refactor usability tests. + > + > + ``` + {% tip %} + + **Tip:** If you're using a text editor on the command line to type your commit message, ensure there are two newlines between the end of your commit description and the `Co-authored-by:` commit trailer. + + {% endtip %} 3. On the next line of the commit message, type `Co-authored-by: name ` with specific information for each co-author. After the co-author information, add a closing quotation mark. diff --git a/data/reusables/pull_requests/commit-message-with-trailer-beginning.md b/data/reusables/pull_requests/commit-message-with-trailer-beginning.md deleted file mode 100644 index 08c05d621e1c..000000000000 --- a/data/reusables/pull_requests/commit-message-with-trailer-beginning.md +++ /dev/null @@ -1,11 +0,0 @@ -1. Type your commit message and a short, meaningful description of your changes. After your commit description, instead of a closing quotation, add two empty lines. - ```shell - $ git commit -m "Refactor usability tests. - > - > - ``` - {% tip %} - - **Tip:** If you're using a text editor on the command line to type your commit message, ensure there are two newlines between the end of your commit description and the `Co-authored-by:` commit trailer. - - {% endtip %}