我的 Sublime Text 中的 Git diff 抛出以下错误
error: Malformed value for push.default: simple
error: Must be one of nothing, matching, tracking or current.
fatal: bad config file line 7 in /Users/fizer/.gitconfig
如果我从 .gitconfig 中删除 push.default: simple 。然后就可以了。但是当我执行git push时,它提示它需要push.default: simple。
如何解决?
最佳答案
Sublime 使用旧版本的 git。如果您使用的是 Linux,请在终端中获取 which git
的输出并更改 git 包设置,如下所示:
{
"git_command": "/new/path/to/git"
}
关于sublimetext2 - git sublime 包不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16057381/