lg2 clone reporting user.identityFile not found
Question: Is there any step that I'm missing or is it a-shell doesn't support lg2 cloning? Thanks!
Context: I'm trying to clone a git repo from GitHub. I've tried generating the ssh key file and then I tried git clone.
Problem: I was trying to lg2 clone and got the following error:
lg2 clone [email protected]:<my repo>.git
SSH keys in /var/mobile/Containers/Data/Applica
tion/<some-ID>/Docum
ents/.ssh/:
1 id_ed25519
Enter the number to the left of the desired key
or the path to some other SSH key (the private
key).
SSH Key: Could not read response: No message
ERROR 7: config value 'user.identityFile' was n
ot found
Bad news:
config value 'user.identityFile' was not found
I tried config but it also didn't work:
[~Documents]$ lg2 config
Unable to open repository '%s' '.' [-3] - could
not find repository from '.'
Hi,
I can confirm that lg2 clone <repository> works, it was part of the features we tested. I have no idea what the issue is (I'll look into it tomorrow), but from the error message it looks like lg2 is not sure which ssh key it should use.
Try creating a .gitconfig file, and in it specify user.identityFile to be the SSH key you want to use. Something like this:
[user]
identityFile = id_ed25519
password = "yourPassword(if any)"
Thanks, that works for me after some experiments. So the important part is to add the .gitconfig file to ~/Documents/.gitconfig for my use case instead of what I usually did (~/.gitconfig) in a normal Linux shell