简体   繁体   English

Github:查看此分叉特有的功能分支(不在上游)

[英]Github: View feature branches unique to this fork (not in upstream)

I've forked a repository on Github that I would like to contribute to. 我在Github上创建了一个我想贡献的存储库。 I've already developed several features as feature branches. 我已经开发了多个功能作为功能分支。 On my local machine, I can view the list of feature branches I've written by doing git branch . 在我的本地计算机上,我可以通过执行git branch查看我编写的功能分支列表。 What is the equivalent way to view a list of feature branches in my fork on Github? 在Github上的fork中查看功能分支列表的等效方法是什么? If I just view the list of branches, every branch from both the upstream and the origin is in the list. 如果仅查看分支列表,则来自上游和起源的每个分支都在列表中。

Another scenario: I am examining somebody's fork of a porject, and I want to know what features they have added or what they have done differently from the original ( upstream ) repository. 另一种情况:我正在检查某人的行为叉,并且我想知道他们添加了哪些功能或它们与原始( upstream )存储库有何不同。 How do I do this? 我该怎么做呢?

What is the equivalent way to view a list of feature branches in my fork on Github? 在Github上的fork中查看功能分支列表的等效方法是什么?

Online (as opposed to my old answer with local command git ls-remote ), you would simply click on the branches link of your fork. 在线(与我以前使用本地命令git ls-remote答案相反),您只需单击fork的branches链接。
for instance: 例如:

https://github.com/rratliff/gnucash/branches https://github.com/rratliff/gnucash/branches

That supposes you have pushed all your local branches . 假定您已推动所有本地分支机构

I am examining somebody's fork of a project, and I want to know what features they have added or what they have done differently from the original (upstream) repository 我正在检查某人的项目分支,我想知道他们添加了哪些功能或它们与原始(上游)存储库有何不同

Again, "Branches" link will show you the user branches being "ahead" the ones cloned from the fork. 再次,“分支”链接将向您显示用户分支在分支之前克隆的分支“提前”

But that also supposes that user has fetched from the original repo and pushed those updated branches to his/her fork, in order to have an accurate vision of his/her own feature branches. 但这还假设用户已从原始存储库中获取并将这些更新的分支推送到他/她的fork,以便对自己的功能分支有准确的了解。
Otherwise, you would see feature branches "ahead by 3 commits" of an original branch, except it is an old version of said original branch, fetched many month ago while that same original branch may have seen new commits on the original repo. 否则,您会看到原始分支“提前3次提交”的功能分支,除了它是所述原始分支的旧版本外,它是在多个月前获取的,而同一原始分支可能已经在原始存储库中看到了新的提交。

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

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