2016-12-15 56 views
1

在做一个混帐拉我得到了以下错误:记事本++错误混帐拉

enter image description here

错误的文字是:“行0:靠近意外的标记语法错误‘(’

我做了一个混帐拉这台机器上一次成功之前。

是什么原因造成这个错误,我该如何解决?

回答

1

检查O输出git config --show-origin -l:可能有一个编辑器注册了错误的语法(例如,没有正确的引号或转义字符),这会导致git配置中的路径出现问题。

使用git config --edit编辑正确的配置(系统,全局或本地),并删除不正确的设置。

检查“How can I set up an editor to work with Git on Windows?”:因为Git (for Windows) 2.5.3+,简单的git config core.editor notepad应该就足够了。

或者,记事本++:

git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin" 
+0

事实证明,这是问题,不带引号的路径exe文件。 .gitconfig中的行应为:editor =“'C:\\ Program Files(x86)\\ Notepad ++ \\ notepad ++。exe'” –