主要观点:git 使用二点和三点标记法用于git log和git diff,且在这两种情况下含义不同近乎相反。
关键信息:
- 有关于
git log和两点及三点的解释页面,如Two and three dots with log和Two and three dots with diff,以及git log and git diff。 - 以特定历史记录为例,
A\---B\---C topic和D\---E\---F\---G master,log加两点显示第二个命名分支的独特内容,如git log master..topic显示C, B, A;log加三点显示第二个命名分支和第一个命名分支的独特内容,如git log master...topic显示C, B, A和F, G。 diff加两点显示master状态和topic状态之间的差异,如git diff master..topic显示A, B, C和F, G的差异,可认为是topic独特内容和master独特内容的差异;diff加三点显示topic和(topic, master)的最后共同祖先之间的差异,此例中为E,即topic独特内容导致的差异。
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用。你还可以使用@来通知其他用户。