2

I'm currently trying to deal with git submodules and I'm having trouble when I want to push modifications on children repository.

I get the following error:

fatal: remote error: 
  You can't push to git://github.com/yllieth/ui.git
  Use https://github.com/yllieth/ui.git

Indeed, it's working fine if I change my remote configuration to use HTTPS instead of ssh public key. But I would like to avoid giving my github's username/password.

Is anyone knows some configuration tips or something else to be able to push to a submodule using my public key ?

1

1 Answer 1

2

It's working fine if I change my remote configuration to use HTTPS instead of ssh public key.

Note that git://github.com/yllieth/ui.git is not an ssh url.
See "Which remote URL should I use?" and "Changing a remote's URL":

[email protected]:username/reponame.git would.
In your case: [email protected]:yllieth/ui.git

So you still can use ssh, but you need to change the submodule url.

Sign up to request clarification or add additional context in comments.

1 Comment

My mistake ! It seems I added my submodule with a bad url (git:// instead of git@.... That'll teach me to use my memory rather than copy and paste ;) Thanks to you @VonC

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.