OpenWrt Forum Archive

Topic: How to install git on openwrt? Can't get the package from opkg to work

The content of this topic has been archived on 14 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

git will install, but "git clone https://..." and "git clone http://..." both fail with the output:

Cloning into '{repo}'...
warning: templates not found /usr/share/git-core/templates  (note: "opkg install git" doesn't put anything in /usr/share/)
fatal: Unable to find remote helper for 'https' (or 'http')

google gave me some generic tips, like uninstalling, installing curl, then reinstalling.  That didn't work.

Another option is to to install curl-dev, which is isn't in opkg ... plus, I think this involves compiling git

(note: this is with a new user with sudo privileges, not with root)
Trying "git clone git@github.com:/..." fails by saying "No auth methods could be used".  I'm guessing this is because openwrt's ssh isn't using the key i provided it, but I'm not sure how to add it.  The way I'm used to involves "ssh-agent add..." but there is no 'ssh-agent' on openwrt.

I then tried adding my ssh key to `~/.ssh/config` like:
Host *
  IdentityFile ~/.ssh/my_key

that didn't seem to affect anything at all.

What am I missing here, short of compiling my own packages?

1.) follow https://forum.openwrt.org/viewtopic.php?id=47551
2.) additionally, install the real "wget"- and "grep"-packages via opkg, won't work with BusyBox-crippled, pseudo version of both commands/tools

after doing that, Git is working perfect on OpenWRT

(Last edited by dewferg on 7 Nov 2015, 11:41)

The discussion might have continued from here.