You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
github-help/Creating and deleting branc...

32 lines
1.6 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Creating and deleting branches within your repository 在你的库中创建和删除分支
===========
分支管理是 Git 工作流中重要的一部分。你可以直接在 Github 上管理分支。
##Creating a branch 创建分支
在库的选择菜单中创建分支。只需要输入不重名的名字即可。
![](https://help.github.com/assets/images/help/branch/branch-selection-dropdown.png)
##Deleting a branch 删除分支
同样的,如果你去库的分支页面,你可以删除一个分支,只要你有适当的访问权限,并且没有对它进行 pull request
[](https://help.github.com/assets/images/help/branches/branches-overview.png)
##How is this useful? 怎么用
我们建议在您的计算机上创建分支。这使得它更容易跟踪变化和与其他人合作。
在线的分支管理是在简单的情况下有用,如修复错别字或进行头脑风暴。在这里看看它是如何工作的:
1. 在你的库中创建一个新的分支
2. [创建](Creating new files 创建新文件.md)或[编辑](Editing files in your repository 修改你库中的文件.md)一个文件在你的库
3. 创建 [pull request](Creating a pull request 创建 pull 请求.md) 使其他人可以审查你的分支的变化。
更详细的方法,查看 [GitHub 在浏览器的流程](GitHub Flow in the Browser 在浏览器中的流程.md)。
参考:[https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/#creating-a-branch](https://help.github.com/articles/creating-and-deleting-branches-within-your-repository/#creating-a-branch)