gpt4 book ai didi

git - 图中的分支颜色

转载 作者:太空狗 更新时间:2023-10-29 13:03:38 25 4
gpt4 key购买 nike

在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com