概述
前几天运气不太好,办公电脑硬盘物理损坏;因祸得福,申请到了一块SSD!
激动地开始重装系统和各种软件,Git安装好了,克隆了前面几个库很正常,克隆最后一个特别大的、基于http服务器搭建的文档库时,出问题了,怎么也拉不下来,急死人了,仔细一看,有报错信息如下:
"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe" get: -c: line 0: syntax error near unexpected token `('
"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe" get: -c: line 0: `"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe" get'
"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe" store: -c: line 0: syntax error near unexpected token `('
"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe" store: -c: line 0: `"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe" store'
尝试各种办法,卸载重装好几次都是一样,后来从网上找啊找,尝试了各种方法,最后找到了解决问题的根本途径,现在想想真的很简单啊~~~
解决办法:
1、进入C:Users用户名,找到文件.gitconfig
2、使用文本编辑器打开
3、找到
[credential]
helper = !\"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe\"
4、修改成
[credential]
helper = !"C:/Program Files (x86)/GitExtensions/GitCredentialWinStore/git-credential-winstore.exe"
5、重新打开GIT,克隆文档,没有报错,继续等待十几分钟,有进度啦~~~~~~ 0%也是很大的进步!
最后
以上就是酷酷树叶为你收集整理的Git拉取时报错,syntax error near unexpected token `('的全部内容,希望文章能够帮你解决Git拉取时报错,syntax error near unexpected token `('所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复