请问,分支图是不是按提交顺序排序的呢?
$ git log --graph --pretty=oneline --abbrev-commit * cf810e4 (HEAD -> master) conflict fixed |\ | * 14096d0 (feature1) AND simple * | 5dc6824 & simple |/ * b17d20e branch test * d46f35e (origin/master) remove test.txt * b84166e add test.txt * 519219b git tracks changes * e43a48b understand how stage works * 1094adb append GPL * e475afc add distributed * eaadf4e wrote a readme file
教学示例最后的分支图谱中, 5dc6824 & simple提交应该是在 14096d0 (feature1) AND simple后面的 为什么图谱上显示它在前面
分支图谱从上到下是从新到旧,也就是说最新的提交在最上面。
上一节课廖老师说了的,在Git中,branch被Git用一条时间线串起来的。
Sign in to make a reply
Loxjan
请问,分支图是不是按提交顺序排序的呢?
$ git log --graph --pretty=oneline --abbrev-commit
* cf810e4 (HEAD -> master) conflict fixed
|\
| * 14096d0 (feature1) AND simple
* | 5dc6824 & simple
|/
* b17d20e branch test
* d46f35e (origin/master) remove test.txt
* b84166e add test.txt
* 519219b git tracks changes
* e43a48b understand how stage works
* 1094adb append GPL
* e475afc add distributed
* eaadf4e wrote a readme file
教学示例最后的分支图谱中,
5dc6824 & simple提交应该是在 14096d0 (feature1) AND simple后面的 为什么图谱上显示它在前面