git - 使用 git-plus 后 Atom 文件颜色不同

标签 git atom-editor

在atom上初始化git-plus后,我的所有文件都变成了这种颜色,直到我提交为止。我已经卸载了 git-plus,所有这些仍然存在。即使没有 .git 文件夹的存储库在 TreeView 中仍然具有这种色调。有什么办法可以让我至少在跟踪提交之前将其设为 .git 存储库吗?

enter image description here

最佳答案

我不确定是否有办法仅在您位于 .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/

相关文章:

git - 当依赖项位于私有(private)存储库中时如何使用 Composer 通过 AWS Codeploy 进行部署

git - 如何最好地压缩旧提交

javascript - 在每个 src 或 href 自动值 "$1"$0

git - github 上的 ssh key

当我在命令中指定目录时,Java 类路径问题

git - 在不克隆 gitolite repo 的情况下安装 gitolite

ubuntu - 如何在 ATOM abbrev@1.0.7 中更改控制台中的控制台字体大小

python - 远程服务器设置: nuclide-start-server command doesn't work

winscp - 将 Atom.io 与 winscp 结合使用

github - Atom 编辑器中的 Git 责备