git:'remote-https'不是git命令吗? [英] git: 'remote-https' is not a git command?

查看:840
本文介绍了git:'remote-https'不是git命令吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我尝试克隆,推动或拉动时,我都会得到:

Whenever I attempt to clone, push or pull I get:

C:\Users\User\Documents\Project>git pull

git: 'remote-https' is not a git command. See 'git --help'.

启用和添加仍然可以正常工作.

Committing and adding still work fine.

推荐答案

我也遇到此错误,并通过运行以下命令解决了该错误:

I was also having this error, and solved it by running this command:

path %path%;C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw32\bin

这添加了我的git-remote-https.exe文件存储的文件夹.

This added the folder where my git-remote-https.exe file was stored.

这篇关于git:'remote-https'不是git命令吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆