【问题标题】:Atom files different color after using git-plus使用 git-plus 后 Atom 文件颜色不同
【发布时间】:2017-06-22 12:49:18
【问题描述】:

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

【问题讨论】:

    标签: git atom-editor


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-09
      相关资源
      最近更新 更多