Jump to content

git clone


Rinilyn
 Share

Recommended Posts

um this is embarassing but i cant find out how to install git on my nano( can't git clone). i tried: opkg install git -d sd

opkg install git-http -d sd

even https. (im getting unknown package)

 what's the command?

Link to comment
Share on other sites

1 hour ago, Rinilyn said:

opk not found

just add the 'g' :) -   'opkg update && opkg install git git-http'

In your screen shot you show your issue. - you must update the package lists before installing anything by running 'opkg update'

Link to comment
Share on other sites

okay. theres this issue when its installing and using cat or grep, its not looking at the sd directory. its going to root and is giving something like:

 grep '/usr/lib/opkg/info/git.control 

or cat: can't open '/usr/lib/opkg/info/git-http.list': No such file or directory. 

Its looking at the wrong path and when i manually try to type  grep /sd/usr/lib/opkg/info/git.control  it gets stuck.

can i somehow fix this path issue? still cant get git or anything to install

 

11.JPG

Link to comment
Share on other sites

29 minutes ago, Rinilyn said:

can i somehow fix this path issue? still cant get git or anything to install

It just needs linking.

ln -s /sd/usr/bin/git /usr/bin/git
ln -s /sd/usr/bin/git-shell /usr/bin/git-shell
ln -s /sd/usr/bin/git-upload-pack /usr/bin/git-upload-pack
ln -s /sd/usr/bin/git-upload-archive /usr/bin/git-upload-archive
ln -s /sd/usr/bin/git-receive-pack /usr/bin/git-receive-pack

 

Edited by Just_a_User
Link to comment
Share on other sites

9 hours ago, Rinilyn said:

 help here please,sorry for the trouble

It used to work without issue, I suspect something with ssl - to bypass the issue for now replace your link "https://" with "git://".

I will have a further look when I get a moment. - maybe someone else has already looked at it or solved it. Think it works OK on my tetra so im thinking its just files in wrong folders or similar.

Edited by Just_a_User
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...