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.
Join Stack Overflow to learn, share knowledge, and build your career.
In my case, I was building Git from source in WSL Ubuntu.
The distribution didn't come with libcurl
preinstalled. In this case, the git-remote-http
executable was not being built. So I installed it:
sudo apt install libcurl4-openssl-dev
Then, I re-configured, re-make
d and re-installed, and Git could clone.
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.
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
and done.
Hope this helps other.
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.
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.
libexec\git-core
, is there agit-remote-https.exe
? – jingx Jul 16 '18 at 16:33git-remote-https.exe
underC:\Program Files (x86)\Git\libexec\git-core
– jingx Jul 16 '18 at 17:47