Skip to main content

此版本的 GitHub Enterprise 将停止服务 2022-10-12. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

Managing the automatic deletion of branches

You can have head branches automatically deleted after pull requests are merged in your repository.

Anyone with admin permissions to a repository can enable or disable the automatic deletion of branches.

  1. 在 your GitHub Enterprise Server instance 上,导航到存储库的主页。
  2. 在存储库名称下,单击 “设置”。 “存储库设置”按钮
  3. Under "Merge button", select or unselect Automatically delete head branches. Checkbox to enable or disable automatic deletion of branches

Further reading