How to integrate GitHub and Eclipse in 2022? - eclipse

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)

Related

Git remote seems to point to my repository. But comitting results in Error 403. How do I commit to the repository in my account?

I have a git folder. The remote points to https://myusername#github.com/repo.git. I have cloned this repo from a publicly available repo. When I do git push it asks me for https://myusername#github.com.
I havent used git in a while. I realized they don't do password anymore. So I generated a token and used it in the place of the password. However I am getting the following error
remote: Permission to repo.git denied to myusername.
fatal: unable to access 'https://github.com/repo.git/': The requested URL returned error: 403
However my impression was that I was accessing the repo at myusername#github.com not trying to modify the original public repository "repo.git"
What am I missing? My remote seems to be pointed to my account and it asks the password to my account. Sorry I am inexperienced with git and seem to be missing something fundamental
Thanks

How can you get the right access key to push in my git work to my github repo?

i encountered this problem while trying to push to my accountvia terminal, working on a site
and it kept giving me that fatal error "Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists."
i have tried getting access to another SSH key but still not working.
https://docs.github.com/en/authentication/connecting-to-github-with-ssh
This article would help you solve the problem.
Generate an ssh key
Add it to your account
Refresh the project both on github
On your command line and run the git command again.

IntelliJ Github Issue

Trying to push a project to github and I'm getting the following Error
remote: Permission to RedNetty/RedPractice.git denied to JackCDev.
fatal: unable to access 'https://github.com/RedNetty/RedPractice.git/': The requested URL returned error: 403
The issue isn't as simple as me going into Settings > Version Control > Github
I've already changed that but its still trying to push via the wrong account.
Check if you have a git **credential helper**active:
git config credential.helper
For instance, on Windows, that would be the Windows Credential Managers.
Open the Windows Credential Store, and see if the first user is registered there: delete that entry, and you will be able to authenticate with the second user.
(Here is an example for BitBucket)

error: 403 Forbidden while accessing https://github.com/AlchemyAPI/alchemyapi_python.gi/info/refs

I am trying to use alchemy api for entity extraction
https://github.com/AlchemyAPI/alchemyapi_python
When i give this command to clone
git clone https://github.com/AlchemyAPI/alchemyapi_python.git
I get this error:
The requested URL returned error: 403 Forbidden while accessing https://github.com/AlchemyAPI/alchemyapi_python.gi/info/refs
fatal: HTTP request failed
Please let me know what should I do?
You can try and debug it with GIT_CURL_VERBOSE=1 before git clone.
You also can try cloning it with ssh:
git clone git#github.com:AlchemyAPI/alchemyapi_python
(Make sure your public ssh key is registered first and that ssh -Tv git#github.com works)
I just cloned it with the https url without any issue.
Download the code as zip file. There is option on bottom-right corner.

Error in cloning from github

I am trying to clone a repository from github but havn't been able to successfully do so. Please help.I am getting
gaurav#gaurav-Lenovo-IdeaPad-Y500:~$ git clone https://github.com/gauravp94/eden.git
Cloning into 'eden'...
fatal: unable to access 'https://github.com/gauravp94/eden.git/': Failed connect to github.com:1080; Connection timed out
I am running internet thorough my college proxy on Ubuntu 13.10.
Thanks.
Your clone command is valid and working, so basically you seem to have either network problem, dns problem, routing problem or you just tried in moment github was doing something:
Failed connect to github.com:1080; Connection timed out
It works for me, so try again.
The url
https://github.com/gauravp94/eden.git/
is not accessible. Please try opening this url in browser IE. Check if you have access to this url.