Skip to main content

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. 在 GitHub.com 上,导航到存储库的主页。
  2. 在存储库名称下,单击 “设置”。 “存储库设置”按钮
  3. Under "Pull Requests", select or unselect Automatically delete head branches. Checkbox to enable or disable automatic deletion of branches

Further reading