fatal: Unable to find remote helper for ‘https’

This blog post suggests a possible solution to the following error message that can appear when using the gh command line tool for github: fatal: Unable to find remote helper for ‘https’.

On a new system, I used the following command to install the gh command line tool for github:

sudo snap install gh

I was able to use the gh command to authenticate against github:

gh auth login

The following command to clone a repository failed:

gh repo clone <user/repo>

This was the output:

Cloning into '<repo>'...
warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'
exit status 128

The warning about a directory that does not exist appears to be irrelevant. The more important issue is that git itself has not been installed. Unfortunately, the error message is somewhat misleading.

The solution is to install git.

sudo apt install git

Now the gh repo clone command should work.

Leave a comment