如何在命令行中从sha1哈希值获取分支/功能名称? 还有,如何使用pretty=format语法完成这个操作。 我看到它是通过以下方法完成的。 git log --graph --full-history --all --color \ --pretty=format:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s" 但我不知道哪一行代码导致了这个问题。