主要观点: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) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。