点中的疼痛 —— pydagogue 0.2 文档

主要观点:git 使用二点和三点标记法用于git loggit diff,且在这两种情况下含义不同近乎相反。
关键信息:

  • 有关于git log和两点及三点的解释页面,如Two and three dots with logTwo and three dots with diff,以及git log and git diff
  • 以特定历史记录为例,A\---B\---C topicD\---E\---F\---G masterlog加两点显示第二个命名分支的独特内容,如git log master..topic显示C, B, Alog加三点显示第二个命名分支和第一个命名分支的独特内容,如git log master...topic显示C, B, AF, G
  • diff加两点显示master状态和topic状态之间的差异,如git diff master..topic显示A, B, CF, G的差异,可认为是topic独特内容和master独特内容的差异;diff加三点显示topic(topic, master)的最后共同祖先之间的差异,此例中为E,即topic独特内容导致的差异。
阅读 7
0 条评论