git: 'remote-https' 不是一个 git 命令?

42
无论我尝试克隆、推送或拉取,都会收到以下信息:
C:\Users\User\Documents\Project>git pull

git: 'remote-https' 不是 Git 命令。查看 'git --help'。

提交和添加仍然可以正常工作。


请添加您输入的命令以获取此输出。 - Matan Shahar
3
请检查您的 Git 安装目录下的 libexec\git-core 文件夹,是否包含 git-remote-https.exe 文件? - jingx
@jingx 我已经更新了git到最新版本,我该如何检查我的git安装情况?我是否需要一个本地文件? - Joel Lightning Lefkowitz
考虑更新您的git版本?您正在运行哪个版本?v1.6? - evolutionxbox
在我的Windows系统中,我发现git-remote-https.exe位于C:\Program Files (x86)\Git\libexec\git-core目录下。 - jingx
在Linux上,我成功地使用了以下命令:sudo apt-get install git - Mauricio Toledo
11个回答

0
在我的情况下,Windows 10 更新创建了一些注册表阻止器(这些阻止器在更新后被留下)。
我只需要删除以下注册表键。
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\git-remote-https.exe]
"Debugger"="\"C:\\windows\\SoftwareDistribution\\Download\\Install\\patchmypc-preventstart.exe\" /StopProcess /ApplicationName=\"git-remote-https.exe\"" 

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接