Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How to force Jgit to use SSH instead of HTTPs?
How to force Jgit to use SSH instead of HTTPs? [message #1803028] Thu, 21 February 2019 09:21 Go to next message
Nancy Ahuja is currently offline Nancy AhujaFriend
Messages: 1
Registered: February 2019
Junior Member
I am trying to clone a git repo with submodules, but the problem is inside the .gitmodules the url is in https. I don't want to use CredentialProvider. I've tried using this :

session.setConfig("url.git@github.com:.insteadof","https://github.com/");


This is not working, it is still trying to use https. Can you please help me with this? I am new to JGit.
Re: How to force Jgit to use SSH instead of HTTPs? [message #1803219 is a reply to message #1803028] Mon, 25 February 2019 12:24 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 174
Registered: August 2016
Senior Member
What is "session"?

If I put in my git user config
[url "git@github.com:"]
    insteadOf = https://github.com/

this works.
Previous Topic:Frontend Data with EGit
Next Topic:Keybase.io repositories
Goto Forum:
  


Current Time: Thu Dec 12 07:57:03 GMT 2019

Powered by FUDForum. Page generated in 0.02533 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top