Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Updated documentation for GitHub integration (HTTPS) on windows 10
Updated documentation for GitHub integration (HTTPS) on windows 10 [message #1822973] Tue, 17 March 2020 13:28 Go to next message
trip itaka is currently offline trip itakaFriend
Messages: 7
Registered: March 2020
Junior Member
I am on a windows 10 machine, running IDL 8.7.3

I am trying to configure IDL to use with GitHub. The documentation seems outdated and doesn't address HTTPS adequately.

I have managed to clone a repo from GitHub, i can pull content and commit changes locally, however i can not push. I receive the message " https://github.com/user/repo.git : not authorized". I have read the documentation and i see nothing addressing this. (I think the problem is because of HTTPS)

I use GitHub with R daily so i am not a complete novice. Set up and use with RStudio is a breeze.

I see the .config file for Eclipse is in a different folder that my c/users/me folder. So i have made sure the settings are identical.

Can someone provide detailed instructions regarding the settings that should be used to interface with GitHub using HTTPS?

thanks in advance
Re: Updated documentation for GitHub integration (HTTPS) on windows 10 [message #1822974 is a reply to message #1822973] Tue, 17 March 2020 13:34 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4069
Registered: July 2009
Senior Member

Usually you want to clone, or at least push, with the SSH URL: https://wiki.eclipse.org/EGit/User_Guide#Push_Upstream .



Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Updated documentation for GitHub integration (HTTPS) on windows 10 [message #1822975 is a reply to message #1822974] Tue, 17 March 2020 13:38 Go to previous messageGo to next message
trip itaka is currently offline trip itakaFriend
Messages: 7
Registered: March 2020
Junior Member
why is that? i don't do that in Rstudio. Never needed to.

Is that specific to Eclipse?
Is there some documentation on this site?

[Updated on: Tue, 17 March 2020 13:39]

Report message to a moderator

Re: Updated documentation for GitHub integration (HTTPS) on windows 10 [message #1822981 is a reply to message #1822975] Tue, 17 March 2020 15:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 31917
Registered: July 2009
Senior Member
Did you try what I suggested?

I believe that to make https work for push you need to include the ID in the URL so that you can be prompted for that ID's password, e.g., https://<user-id>@github.com/user/repo.git


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Updated documentation for GitHub integration (HTTPS) on windows 10 [message #1822983 is a reply to message #1822981] Tue, 17 March 2020 15:55 Go to previous messageGo to next message
trip itaka is currently offline trip itakaFriend
Messages: 7
Registered: March 2020
Junior Member
@ed yes i tried that.

I am following this video (https://www.youtube.com/watch?v=HuhJ22oHyfc)
and when i configure the origin i add the URL as you suggested.
I still get "not authorized"

Re: Updated documentation for GitHub integration (HTTPS) on windows 10 [message #1822995 is a reply to message #1822983] Tue, 17 March 2020 18:25 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 374
Registered: August 2016
Senior Member
Are you using 2FA at Github? If so, it won't work. See bug 478963: JGit has no support for two-factor authentication. As a work-around use ssh.

What is IDL? This: https://www.harrisgeospatial.com/docs/IDLDEOverview.html ?

Which EGit version are you using? Which Eclipse version is this based on?
Re: Updated documentation for GitHub integration (HTTPS) on windows 10 [message #1822996 is a reply to message #1822995] Tue, 17 March 2020 18:46 Go to previous messageGo to next message
trip itaka is currently offline trip itakaFriend
Messages: 7
Registered: March 2020
Junior Member
@thomas. Yes i am using 2FA on GitHub. Thanks for the explanation.

IDL = interactive data language. the link is correct.

EGit "Git Team Provider" = 2.2.0.201212191850-r

eclipse platform :
Version: 3.7.2.v20120207-1839-9gF7UHPDFxGjd-PqDr2jX_4yKaumkoHTz04_q-q
Build id: M20120208-0800

IDL: 8.7.3
Feb 12 2020 (379705)

Thanks for helping trouble shoot this
Re: Updated documentation for GitHub integration (HTTPS) on windows 10 [message #1822997 is a reply to message #1822996] Tue, 17 March 2020 19:39 Go to previous messageGo to next message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 374
Registered: August 2016
Senior Member
Please note that Eclipse 3.7.2 and EGit 2.2.0 are stone age versions (8 years old!). Even if we added today 2FA support to JGit 5.8.0 it wouldn't help you because the Eclipse version is way too old. Both versions also predate (I think) the introduction of 2FA at Github. I'm not even sure ssh would work with such an old JGit version. Perhaps it might if you use a plain RSA 2048 key; it definitely won't work with modern keys like ed25519. If generated by OpenSSH's ssh-keygen, also make sure the key is stored in PEM format. Modern ssh-keygen by default uses a different format that such an old JGit cannot read. If ssh doesn't work, your only remaining option is not to use 2FA at Github.

Also see Github help. A plain push should ask for the username and password; entering the personal access token as password should in theory work.

The EGit Mylyn-Github integration uses the Github REST API; it definitely won't work with 2FA.

[Updated on: Tue, 17 March 2020 20:05]

Report message to a moderator

Re: Updated documentation for GitHub integration (HTTPS) on windows 10 [message #1823002 is a reply to message #1822997] Tue, 17 March 2020 21:24 Go to previous message
trip itaka is currently offline trip itakaFriend
Messages: 7
Registered: March 2020
Junior Member
@thomas Thanks a lot for your help. I think you have answered it

The software is from a colleague of mine who wants to start to use version control. I offered to help knowing nothing about the software other than reading the documentation. I initially though IDL was part of the Eclipse suite. Clearly it isn't

Even though the version of IDL is new it appears that it is built upon really old architecture. This i don't understand.

I plan to find out.

Thanks again for all you help
Previous Topic:Please explain why these settings are needed in the IDE if they are not used by plugins?
Next Topic:RDi (Rational Developer Eclipse) using egit not finding git execs: bsh: git-receive-pack: not foun
Goto Forum:
  


Current Time: Tue Jun 22 23:47:37 GMT 2021

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

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

Back to the top