4

When I try to to commit ti github repo using egit I receive below error :

enter image description here

What does this error mean ? This is my first commit.

Here is how I am trying to commit :

enter image description here

enter image description here

8
  • What are the details of that exception? Can you click on the detail button and copy-paste it in this question? (no screen capture, copy-pate the text) Commented Feb 23, 2012 at 8:05
  • 1
    Details are the same as reason error : "Exception caught during execution of ls-remote command Exception caught during execution of ls-remote command" Commented Feb 23, 2012 at 8:28
  • 1
    ok, so no call stack then. Can you clone that git repo through Egit? In other workds, are your network settings correctly set to allow https communication between your workstation and GitHub? Commented Feb 23, 2012 at 8:53
  • Egit does not give me the option to clone the repo. How can I check that my network settings are correctly setup ? Commented Feb 23, 2012 at 20:25
  • you can follow. Vogella's tutorial on Egit: if you can clone a Github report, your setup (including network) are good. vogella.de/articles/EGit/article.html#github Commented Feb 23, 2012 at 21:08

6 Answers 6

2

On March 4, GitHub temporary disabled all the public keys until you approve them due to security reasons. I had the same problem when I tried to commit. For those who have met the same exceptions after March 4, 2012, go to https://github.com/settings/ssh/audit/ and approve your public keys so that you can pull-from/push-to your repository again.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks for this. Knew it would be something simple! Cheers.
2

Adding .git to the repository url worked for me.

Comments

2

The issue for me was an incorrect version of egit. When using the eclipse update site I used the recommended version instead of the Indigo version.

From the Egit download page:

enter image description here

1 Comment

Does not help me. It was also the exact same version. I need to uninstalled it first.
1

I would first ensure that your settings are correct by using git bash to clone the repository. This will print out any problems if you encounter an error. This will verify that your network settings and git settings are correct.

If you need a read-only URL, you could try using the github read-only URL, which looks like: git://github.com/path/to/repo.git

However, github users read/write URLs for pushing code to github. These URLs use the following format: [email protected]:path/to/repo.git. You can find these URL's listed on the github repo page. It may be that the problem you're encountering is if you're pushing to github but using the HTTP protocol rather than the read/write protocol git@.

2 Comments

Thank you but I'm trying to commit using Egit alone and trying to stay away from using git commands as much as I can.
@user470184 I know that, but since you're running into errors, you have to follow some procedures to debug the reason why Egit is failing. Besides, who needs GUI's anyway? -- The URL's that I gave you would still be used by Egit (theoretically). But if stuff isn't working, you need to figure out why, sometimes that means getting into the terminal isn't such a bad thing and will save you a ton of headache.
1

In my case the ssh key setup on github was not done correctly. As soon as I removed repository specific deploy keys and defined a global ssh key things started to work as expected for me

Comments

-1

Going to the right depth in the repository url to match which directory .git is actually in (without specifying .git itself) worked for me. I was trying to go one level too high.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.