Cloning repository from github
Hello,
I recently have been trying to clone a repository from github on to my machine through RubyMine. I have setup my github setting in the RubyMine preferences and have clicked test, says successful. However when I try to clone the background process just sits there thinking. I was able to clone from command line and using GitMac with now problems. Any help would be greatly appreciated.
Thanks,
请先登录再写评论。
Hello Chris,
Please ensure that you have configured your ssh keys properly to work with github. You should register your public ssh key.
Regards,
Oleg
I believe I have. Like I said I successfully added my public key to github and am able to clone through terminal. Is there another way to register the ssh key?
Thanks,
Ok so I have done some testing around cloning the repository from github and I think I have found something. I noticed that when RubyMine tries to clone the repo it is pulling from https://github.com/X0nic/uppers.git. With that said I tried cloning from the same source in terminal and noticed that it prompted me for my username and password. Once I entered in my credentials the clone started and finished with no problems.
I think RubyMine is waiting for the username and password however shouldn't that already be setup in the GitHub section of the preferences?
Thanks,
Ah, I see the problem.
Unfortunally RubyMine's git intregration doesn't fully support https authentification.
Here is an issue: http://youtrack.jetbrains.net/issue/IDEA-55298
Feel free to vote, comment and get notified once it is fixed.
Sorry for such inconveniences.
Regards,
Oleg
Hi,
Thanks for the heads up, is there a different way to authenticate without https? RubyMine just seems to use that be default.
Thanks,
Hello Chris,
This functionality is scheduled to be implemented in April, unfortunally github doesn't support http, so the only way to work with github is to fork the project and work with it using git protocol, which is fully supported.
Regards,
Oleg
Hi Oleg,
Thanks for your response. Is there no way to clone it from github using the ssh address through RubyMine?
Hello Chris,
Unfortunally you cannot do this in the moment. As a workaround you can clone repository using command line, and open it in RubyMine.
I've created an issue: http://youtrack.jetbrains.net/issue/IDEA-66991
Feel free to vote, comment and track progress.
Regards,
Oleg
Ok thanks very much for you help and explainations
Hi, Chris,
Recently I've fixed at least some part of this problem: now you can use ssh access if you can push to the repository.
This fix will be included in coming RubyMine 3.1.1 release.
Regards,
Oleg
Hi Oleg,
Thats great news, thanks again.