简体   繁体   English

如何处理已合并到上游的Github分支?

[英]What to do with Github branches that have been merged to upstream?

As I work on a forked github project I have created many branches that I have sent pull-requests on. 当我在一个分叉的github项目上工作时,我创建了许多分支,我已经发送了pull-requests。 Once these branches are merged to upstream, they remain in my local and remote repo. 一旦这些分支合并到上游,它们就会保留在我的本地和远程仓库中。 What is best practice to do with these branches? 这些分支的最佳做法是什么?

Once they are merged, you can safely delete them, as the commits in them are tracked by the main branch in the upstream repo. 合并后,您可以安全地删除它们,因为它们中的提交由上游仓库中的主分支跟踪。 Keeps things clean. 保持清洁。 IIRC github even gives you a popup to delete pull request branches. IIRC github甚至会为你提供一个删除拉取请求分支的弹出窗口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM