用带参数的 git log 查看分支合并情况

用带参数的 git log 查看分支的合并情况:

$ git log --graph --pretty=oneline --abbrev-commit --all
*   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
  • --graph :显示分支结构
  • --pretty=oneline :单行显示
  • --abbrev-commit :简化显示 commit hash
  • --all :显示所有
posted @ 2023-03-13 16:44  HopeLive  阅读(272)  评论(0)    收藏  举报