git - 图中的分支颜色

标签 git atlassian-sourcetree

在 SourceTree 的日志 View 中,在图表列中我可以看到许多不同颜色的线条。我如何知道每条线对应的颜色?

谢谢

最佳答案

我不确定这是一个答案(因为它不能解决你的问题),但我认为 SourceTree 目前没有这个功能,目前颜色分支是随机分配的(尽管是按特定顺序选择的)。

有这样一个功能的请求:https://jira.atlassian.com/browse/SRCTREE-1191

还有一个 response from an Atlassian developer突出实现难度:

In git, branches are never an attribute of a commit, they're simply pointers to a single commit which move as you commit to that branch, so the history is built by association via the parent links, and each commit has no branch information associated with it. This means moving branches around is very easy in Git, which is one of its strengths, although it can be confusing not to see an explicit branch in the commit metadata like you're used to in other systems. Technically the graph lines are just ancestry lines, not branch lines (although often the two are aligned).

关于git - 图中的分支颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18017312/

相关文章:

git - 如何强制 git 将点文件添加到存储库

git - Sourcetree 不启动 Beyond compare 外部 merge 工具

git - 使用gitflow删除一个 'feature'分支而不 merge 到master分支

git - 我有点与“源代码树”解决方案混淆: Resolve Using Mine and Resolve Using Theirs [duplicate]

Git 取证 : all changes on dev branch disappeared after merge into master

git - 使用 Git 在特定时间或日期自动提交和推送

git - 如何使用具有功能分支之间依赖关系的 Gitflow?

windows - 对于Windows来说,有比gitbash更好的控制台吗?

git - DVCS如何构建具有大型集成代码库、多个项目共享大量通用代码的?

django - 从使用 GIT-SVN 创建的 GIT 存储库 fork 的限制?