Creating and deleting branches within your repository
You can create or delete branches directly on GitHub.
In this article
- Creating a branch
- Deleting a branch
- Further reading
Were you able to find what you were looking for?
Creating a branch
-
On GitHub, navigate to the main page of the repository.
-
Optionally, if you want to create your new branch from a branch other than the default branch for the repository, click NUMBER branches then choose another branch:
-
Click the branch selector menu.
-
Type a unique name for your new branch, then select Create branch.
Deleting a branch
You can have head branches automatically deleted after pull requests are merged in your repository. For more information, see "Managing the automatic deletion of branches."
You can't delete a branch if it's currently associated with an open pull request.
- On GitHub, navigate to the main page of the repository.
- Above the list of files, click NUMBER branches.
- Scroll to the branch that you want to delete, then click .
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/5333.html
標籤:其他
上一篇:騰訊云 Serverless 部署應用耗時降低了 73%
下一篇:感知機:教程,實作和可視示例
