Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

https

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.

like image 578
Joel Lightning Lefkowitz Avatar asked Jul 16 '18 16:07

Joel Lightning Lefkowitz


People also ask

How do I change my remote from https to SSH?

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.

What is git remote HTTP?

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.

Does git push use https?

Git with HTTPS uses public-key encryption-based authentication for doing every action like git push, git clone, git fetch and git pull, etc.

How do I change my git remote URL?

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.


2 Answers

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-maked and re-installed, and Git could clone.

like image 195
Pedro OS Avatar answered Sep 20 '22 09:09

Pedro OS


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.

like image 38
Mike Gledhill Avatar answered Sep 17 '22 09:09

Mike Gledhill