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
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 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.
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 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.