【问题标题】:macOS BigSur keeps resetting the gitconfig located at ~/.gitconfigmacOS BigSur 不断重置位于 ~/.gitconfig 的 gitconfig
【发布时间】:2021-03-19 23:36:50
【问题描述】:

一段时间后git报错识别自己,gitconfig文件设置为

[user]
    name = =
    email = =

【问题讨论】:

  • 您是否在您的工具中使用了任何可能导致此问题的 Git 前端、自定义挂钩或 shell 配置或 Git 集成? this answer 看起来是否正确?

标签: git macos git-config


【解决方案1】:

原来是 Atom 编辑器重置了我的 git 配置。由于某种原因,Atom 不允许我配置它,所以我现在必须停止使用它。

【讨论】:

  • 我也遇到了同样的问题(在 Catalina 中)——也使用 Atom。我发现 Atom 中的 Github 包是罪魁祸首——你可以配置它(单击屏幕右下方的“Git”按钮),尽管我还没有看到这是否能解决它。如果没有,您可以禁用 Github 包(在设置 -> 包中)。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-04-19
  • 2011-05-02
  • 2013-09-13
  • 1970-01-01
  • 2015-12-08
  • 2019-12-08
  • 2012-05-09
相关资源
最近更新 更多