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 ?

Sylvain
  • 1,399
  • 2
  • 17
  • 25
  • See this question "http://stackoverflow.com/questions/5343068/is-there-a-way-to-skip-password-typing-when-using-https-github" – Winston Sep 23 '14 at 15:19

1 Answers1

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":

git@github.com:username/reponame.git would.
In your case: git@github.com:yllieth/ui.git

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

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 1
    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 – Sylvain Sep 24 '14 at 14:31