Note: The ability to create a commit on behalf of an organization is currently in public beta and is subject to change.
To create commits on behalf of an organization:
- you must be a member of the organization indicated in the trailer
- you must sign the commit
- your commit email and the organization email must be in a domain verified by the organization
- your commit message must end with the commit trailer
on-behalf-of: @org <email@example.com>
orgis the organization's login
firstname.lastname@example.org in the organization's domain
Organizations can use the
email@example.com email as a public point of contact for open source efforts.
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.
git commit -m "Refactor usability tests. >
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 the next line of the commit message, type
on-behalf-of: @org <firstname.lastname@example.org>, then a closing quotation mark.
git commit -m "Refactor usability tests. > on-behalf-of: @ORG NAME@ORGANIZATION.COM"
The new commit, message, and badge will appear on GitHub.com the next time you push. For more information, see "Pushing commits to a remote repository."
After you've made changes in a file using the web editor on GitHub, you can create a commit on behalf of your organization by adding an
on-behalf-of: trailer to the commit's message.
- Click Commit changes...
- In the "Commit message" field, type a short, meaningful commit message that describes the changes you made.
- In the text box below your commit message, add
on-behalf-of: @org <email@example.com>.
- Click Commit changes or Propose changes.
The new commit, message, and badge will appear on GitHub.com.