如何在日志中获取分支名称?

How to get branch name in log?

如何在 "All Branches" 选项的 TortoiseGit 日志中通过颜色获取分支名称?或者如何获取 TortoiseGit 或 Git 中某个提交所属的分支名称?!

不知道 TortoiseGit.. 但在 git 控制台中你可以使用:

git branch --contains <commit>

您有多种选择:

  1. 最先进的方法:Select 提交并打开上下文菜单并单击 "Show branches this commit is on",这基本上立即调用 git branch -a --contains <commit>

  2. Select 提交,然后在右上角 select "Branch" 或 "Parent 1" 并点击组合框旁边的向上按钮,直到你找到分支标签。