小编Dro*_*oom的帖子

git log 末尾的百分比符号 --pretty=format

当我跑步时

git log --pretty=format:%s -1
Run Code Online (Sandbox Code Playgroud)

我得到这样的反馈:

Merge branch 'feature/416_NewTemplate' into develop%  
Run Code Online (Sandbox Code Playgroud)

由于某种原因,最后会出现一个白底黑字的百分比符号。我找不到原因。我删除了所有 gitconfig 别名,因为我认为它来自那里,没有任何变化。

它不在我的提交消息中,因为百分比符号出现在所有提交的末尾:

git log --pretty=format:'%s' -2
Merge branch 'feature/416_NewTemplate' into develop
ft(#416/NewTemplate): resolve merge conflict%  
Run Code Online (Sandbox Code Playgroud)

当我尝试时没有百分比符号

git log --pretty=short
Run Code Online (Sandbox Code Playgroud)

Windows 上的 Git 版本 2.17.0 babun shell zsh。

git zsh

6
推荐指数
1
解决办法
1226
查看次数

标签 统计

git ×1

zsh ×1