问题描述
我刚开始使用git。如果我执行“ git show-branch”,它将以图形方式显示分支分歧。 ---
分隔符上方的感叹号与星号是什么意思?
XXXXX@XXXXX gittest % git show-branch
* [Branch1] Adding third file to Branch1
! [feature/new-feature] Adding second file to master branch
! [master] Adding second file to master branch
---
* [Branch1] Adding third file to Branch1
* [Branch1^] Branch 1 file two
* [Branch1~2] Branch1 first commit
++ [feature/new-feature] Adding second file to master branch
*++ [Branch1~3] Initial commit
XXXXX@XXXXX gittest %
解决方法
在官方文档here
中给出N,前N行是其提交消息中的单行描述。 $ GIT_DIR / HEAD指向的分支头以星号*字符 为前缀,而其他头以!为前缀。字符 。