【发布时间】:2017-06-22 12:49:18
【问题描述】:
在我在 atom 上初始化 git-plus 之后,我所有的文件都变成了这种颜色,直到我提交它。我已经卸载了 git-plus,所有这些仍然存在。即使其中没有 .git 文件夹的存储库在树视图中仍然具有这种色调。有什么方法可以让我至少在跟踪提交之前将其设为 .git 存储库?
【问题讨论】:
标签: git atom-editor
在我在 atom 上初始化 git-plus 之后,我所有的文件都变成了这种颜色,直到我提交它。我已经卸载了 git-plus,所有这些仍然存在。即使其中没有 .git 文件夹的存储库在树视图中仍然具有这种色调。有什么方法可以让我至少在跟踪提交之前将其设为 .git 存储库?
【问题讨论】:
标签: git atom-editor
我不确定是否有办法只在您位于 .git 存储库中时才进行着色,也许其他人可以提供帮助。
我个人也不喜欢树形视图 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;
}
}
【讨论】: