GitExtensions GitCredentialWinStore syntax error near unexpected token `('

之前不知道配置了什么,在Git Bash页面进行操作时报如下的错误:


$ git fetch origin

\"D:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-wins

tore.exe\" get: -c: line 0: syntax error near unexpected token `('

\"D:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-wins

tore.exe\" get: -c: line 0: `\"D:/Program Files (x86)/GitExtensions/GitCredentia

lWinStore/git-credential-winstore.exe\" get'


解决方法:

找到.gitconfig文件,默认是在C:\Users\用户名\下的.gitconfig中,用文本编辑器打开,其中有下面的一项配置:

[credential]

helper = !\\\"D:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\\\"

转义符修改成:

[credential]

helper = !\"D:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\"





你可能感兴趣的:(error,syntax,GitExtensions)