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.
Switching remote URLs from HTTPS to SSH Change the current working directory to your local project. List your existing remotes in order to get the name of the remote you want to change. Change your remote's URL from HTTPS to SSH with the git remote set-url command. Verify that the remote URL has changed.
When git needs to interact with a repository using a remote helper, it spawns the helper as an independent process, sends commands to the helper's standard input, and expects results from the helper's standard output.
Git with HTTPS uses public-key encryption-based authentication for doing every action like git push, git clone, git fetch and git pull, etc.
Update the URL for Git repositories Run git remote -v to see the current remote URL. Update the remote URL with git remote set-url using the current and new remote URLs.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With