Github:跨叉比较? [英] Github: comparing across forks?

查看:240
本文介绍了Github:跨叉比较?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我比较Github上的两个分支时,它不会比较最新的状态,但是基数的当前状态叉与最后一次常见的提交(或我错了吗?);那么如何才能比较Github上的最新状态/头像?
$ b $ p 更长版本



我正在尝试

第一种情况是 github / linguist:master ... gjtorikian / linguist:master ,共同的祖先和 gjtorikian / linguist:主人是一样的! O提交。



第二种情况 gjtorikian / linguist:master ... github / linguist:master github / linguist:master 自共同祖先以来有1866次提交(这里,自 gjtorikian / linguist:master )。 p>

Short version

When I compare two forks on Github, it does not compare the latest states, but the current state of the base fork with the last common commit (or am I wrong?); so how can I compare the latest states/heads on Github?

Longer version

I am trying to compare two repositories on Github.

It does not seem to compare the latest states of both repository. Instead, it compares:

  • the base fork as it was when both repositories where identical (last common commit?)

with

  • the head fork as it is now.

You can see this in the Github's fork comparison example, it says there are no changes between those two repositories, but there are now very different.

How can I compare the latest states/heads on Github?

解决方案

https://github.com/github/linguist/compare/master...gjtorikian:master

github:master is up to date with all commits from gjtorikian:master.
Try switching the base for your comparison.

It means that all commits from gjtorikian/liguist are part of github/linguist.

The reverse is not true:
https://github.com/gjtorikian/linguist/compare/master...github:master

That would give all (1866) commits from github/linguist which are not part of gjtorikian/linkguist.

This is triple-dot '...' diff between the common ancestor of two branches and the second branch (see "What are the differences between double-dot ".." and triple-dot "" in Git diff commit ranges?"):

In the first case github/linguist:master...gjtorikian/linguist:master, the common ancestor and gjtorikian/linguist:master are the same! O commits.

In the second case gjtorikian/linguist:master...github/linguist:master, github/linguist:master has 1866 commits since the common ancestor (here, since gjtorikian/linguist:master).

这篇关于Github:跨叉比较?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆