在atom上初始化git-plus后,我的所有文件都变成了这种颜色,直到我提交为止。我已经卸载了 git-plus,所有这些仍然存在。即使没有 .git 文件夹的存储库在 TreeView 中仍然具有这种色调。有什么办法可以让我至少在跟踪提交之前将其设为 .git 存储库吗?
最佳答案
我不确定是否有办法仅在您位于 .git
存储库中时才使色调发生,也许其他人可以提供帮助。
我个人也不喜欢 TreeView git 颜色,所以我完全删除了它们。您可以通过将以下内容添加到样式表中来实现此目的:
// Remove Git highlighting from tree view
.status-modified,
.status-added,
.status-renamed,
.status-removed {
color: inherit;
background-color: inherit;
&.directory > .list-item {
color: inherit !important;
background-color: inherit !important;
}
&.directory.selected > .list-item {
color: inherit !important;
background-color: inherit !important;
}
}
关于git - 使用 git-plus 后 Atom 文件颜色不同,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44699890/