git: 'remote-https' is not a git command?

前端 未结 4 1888
伪装坚强ぢ
伪装坚强ぢ 2020-12-11 05:02

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

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

git: \'remote-https\' is not a git c

相关标签:
4条回答
  • 2020-12-11 05:11

    Today, I was facing the same problem. The problem in my case was wrong path set in android studio to the git execution file. I changed the path of git execution and it worked. According to my git installation the path was C:\Program Files\Git\mingw64\bin\git.exe. I used this path in android studio. By using below steps

    1. File
    2. Setting
    3. version control
    4. git And I pasted the above mentioned path in Path to git exectable

    and done.

    Hope this helps other.

    0 讨论(0)
  • 2020-12-11 05:19

    I encountered the same thing with the git 2.18.0 or higher version. I downgraded to 2.17.* and it seems to solve the problem. My issue was running git clone through https.

    0 讨论(0)
  • 2020-12-11 05:30

    I had the same error and I solved by installing the latest version of Git for Windows at https://gitforwindows.org/. This might not be the correct solution for everyone. I had recently uninstalled Git for Windows not realizing that my git GUI, SourceTree, was using it.

    0 讨论(0)
  • 2020-12-11 05:34

    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

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

    0 讨论(0)
提交回复
热议问题