Skip to main content

Managing the commit signoff policy for your organization

You can require users to automatically sign off all commits they make in GitHub Enterprise Server's web interface to repositories owned by your organization.

Who can use this feature

Organization owners can require all commits to repositories owned by the organization be signed off by the commit author.

About commit signoffs

To affirm that a commit complies with the rules and licensing governing a repository, many organizations require developers to sign off on every commit. If your organization requires commit signoffs, you can make signing off a seamless part of the commit process by enabling compulsory commit signoffs for users committing through GitHub Enterprise Server's web interface. After you enable compulsory commit signoffs for an organization, every commit made to repositories in that organization through GitHub Enterprise Server's web interface will automatically be signed off on by the commit author.

People with admin access to a repository can also enable compulsory commit signoffs at the repository level. For more information, see "Managing the commit signoff policy for your repository."

强制提交签字仅适用于通过 Web 界面进行的提交。 对于通过 Git 命令行接口进行的提交,提交作者必须使用 --signoff 选项签字提交。 有关详细信息,请参阅 Git 文档

可通过检查正在编辑的文件底部的提交表单的标题,来确定正在创建的存储库是否启用了强制提交签字。 启用强制提交签字后,标题将显示“签字并提交所做的更改”。

启用了强制签字的提交表单的屏幕截图

在签字提交之前,应确保提交符合有关管理所提交的存储库的规则和许可。 存储库可使用签字协议,例如来自 Linux 基金会的开发者来源证书。 有关详细信息,请参阅开发者来源证书

签字提交与签名提交不同。 有关签名提交的详细信息,请参阅“关于提交签名验证”。

Managing compulsory commit signoffs for your organization

  1. 在 GitHub Enterprise Server 的右上角,单击你的个人资料照片,然后单击“你的组织”。 贵组织在配置文件菜单中

  2. 在组织旁边,单击“设置”。 设置按钮

  3. In the "Code, planning, and automation" section of the sidebar, select Repository, then click Repository defaults.

  4. Select or deselect Require contributors to sign off on web-based commits. Screenshot of Require contributors to sign off on web-based commits