notepad++ - GitBash 在合并时返回 Notepad++ 错误

标签 notepad++ git-bash

我今天尝试在 GitBash 中进行合并,但收到以下错误:

C:\Program Files (x86)\Notepad++\notepad++.exe: -c: line 0: syntax error near unexpected token `('
C:\Program Files (x86)\Notepad++\notepad++.exe: -c: line 0: `C:\Program Files (x86)\Notepad++\notepad++.exe "$@"'
error: There was a problem with the editor 'C:\Program Files (x86)\Notepad++\notepad++.exe'.

我不明白为什么它会抛出这个错误,并且 Notepad++ 或 GitBash 中没有任何变化。知道在哪里可以搜索或解决这个问题吗?

最佳答案

检查 git config -l 输出(如果您有足够新的 Git,则使用 git config --show-origin -l)。
你可以检查它的声明是否是 similar to this answer .

您可以在那里看到您的配置,并获取涉及 Notepad++ 的行。

如果您解压缩(并将 latest portable Git for Windows 添加到您的 %PATH%),请检查问题是否仍然存在。 : PortableGit-2.11.1-64-bit.7z.exe

set PATH=C:\git2.11.1\bin;C:\git2.11.1\usr\bin;%PATH%
git bash
# try again the merge

关于notepad++ - GitBash 在合并时返回 Notepad++ 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42096495/

相关文章:

Git Bash - 在完整的 C :\hard drive 上意外地从 Bash 调用了 git init

notepad++ - Notepad++ 中的那些垂直线叫什么?那些因匹配括号或标签等而亮起的

regex - Notepad++:搜索正则表达式 n 次

full-text-search - Notepad++ 搜索忽略空格?

java - 在 idea intellij 中更改编码不起作用

git - 添加 Git Bash 别名

Notepad++ 中的 Typescript 支持

Windows 的 docker --volume 格式

MySQL Git Bash winpty mysqldump stdout 不是 tty 并且 stdin 不是 tty

github - Gitbash立即关闭,无法登录Github