Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to be able to use a version control system. Although Eclipse comes with CVS, I think it's better that I use a distributed version control system, such as GIT. I was pretty much sold after reading this article.

Anyway, I installed EGit and followed this guide on how to set it up. However, I ran in to a few problems:

  • Adding .project and .classpath inside .gitignore did not seem to work.
  • When I try to open a committed file, it throws an error, saying: "IO error reading Git blob [...]"

What am I doing wrong? If more information is needed, please specify and I will give.

share|improve this question

Not sure, but if EGit actually version .project and .classpath, adding them after in .gitignore won't work.
You need to git rm --cache those two files first. (through command-line).

share|improve this answer
I actually don't know how to access git through the command-line :/. Where would I find git after installing EGit? – someguy Jan 12 '11 at 19:55
@someguy: good question. I usually just unzip a msysgit (on Windows) to have command line version of the tool. – VonC Jan 12 '11 at 19:58
If I did that, it wouldn't be sync'd with Eclipse/EGit, would it? – someguy Jan 12 '11 at 20:01
Also, thanks for link. I think it was helpful. I guess I just have to untrack the files and track them again. However, I can't really test it since I've committed and I don't think I can remove them. OoT, but is it possible to delete commits? – someguy Jan 12 '11 at 20:04
@someguy: a/ It should be in sync with Egit (with an occasional project refresh). b/ Deleting commit is possible (but should be made with caution especially if you have already pushed your branch), essentially by resetting the HEAD to a previous SHA1 commit. – VonC Jan 12 '11 at 20:11

EGit doesn't install c git, instead it relies on the Java implementation of git which is JGit. If you want c git download it from

-- Matthias

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.