天天看点

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 `('

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\\\"

转义符修改成:

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

本文转自 breezy_yuan 51CTO博客,原文链接:http://blog.51cto.com/lbrant/1650510,如需转载请自行联系原作者