I apologize in advance for my ignorance.
I'm trying to figure out how to import a repository from GitHub into Eclipse.
First, I go to Import > Git > Projects from Git > Clone URI. I enter in the location of the repository, and under "Authentication" I type in my GitHub username and password. When I click "Next", it asks for my username and password again. It does this three times before giving me this error message:
An error occurred when trying to contact [repository URL]. See the Error Log for more details
Possible reasons:
- Incorrect URL
- No newtork connection (e.g. wrong proxy settings)
- SSL host could not be verified (set http.sslVerify=false in Git configuration)
The message given in the Error Log is simply the repository URL followed by "not authorized".
I have also tried using SSH instead of HTTPS, with no success.
Edit: here's the full stack trace from the error log:
org.eclipse.egit.ui.internal.clone.SourceBranchPage$9.run(SourceBranchPage.java:377)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/DGarrard2/piecepack.git: not authorized
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:685)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:465)
at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:170)