Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Git Synchronize does not display changes

No matter what I do, Eclipse (EGit) doesn't display the changes. I've searched a lot for this issue, but cannot solve it. A friend of mine has the same issue. In the past everything worked fine, but from one day to the other the issue occured.

When I hit Team > Synchronize Workspace, only the dialog "Synchronizing Git: No changes found." appears. When I choose Team > Advanced > Synchronize, the same happens.

I also installed a new Eclipse (with a fresh Windows) and issue was still there. With my Ubuntu notebook everything is fine.

Does anybody have the same issue? Is there a solution? I also tried to install the plugins mentioned in this answer, but it didn't work for me.

Update Eclipse also displays incoming changes (after fetching from upstream) and the changed files (with an arrow), but the synchronize view still doesn't show the changes.

Update 2 I've tested a project from Github and there everything works as apected. What could be the difference between these two projects? I've checked the repository settings and they are equal. Could the authentication cause the issues? Like I've said, the project works fine on my Ubuntu machine.

like image 918
vRallev Avatar asked Jan 28 '13 20:01

vRallev


People also ask

How do I synchronize a project with Git?

15 I've tried the new EGit, re-cloning the project and nothing worked except this: In the Synchronize view, click on the dropdown arrow next to Synchronize button, then select "Synchronize...". In the dialog that appears choose Git, press Next.

How to synchronize Egit with another Egit?

I've tried the new EGit, re-cloning the project and nothing worked except this: In the Synchronize view, click on the dropdown arrow next to Synchronize button, then select "Synchronize...". In the dialog that appears choose Git, press Next.

How to edit the gitignore file inside eclipse?

By default, the Project Explorer view hides all files starting with a dot. To show them, use the "Filters and Customization" menu: And then uncheck the *.resources setting: With this I can edit the .gitignore file inside Eclipse: The file is processed from the top to the bottom, with # used to start a comment line.

How to add changes to a Git project?

Right click on your Project name then Go to Team and click on "Add to Index". Now again Right click on your Project Name then Go to Team and click on "Commit". Now You will see that Git Staging console has been opened and the changes you have made are started displaying in Staged Changes box. Share Improve this answer Follow


2 Answers

I've tried the new EGit, re-cloning the project and nothing worked except this:

  1. In the Synchronize view, click on the dropdown arrow next to Synchronize button, then select "Synchronize...".
  2. In the dialog that appears choose Git, press Next.
  3. Then the crucial part - select destination to be HEAD for your repository and check "Include local uncommitted changes in comparison".
  4. Click Finish.
like image 196
Dejan Milosevic Avatar answered Sep 24 '22 19:09

Dejan Milosevic


I used to have the same problem but upgrading to EGit 2.2 seems to have taken care of it. Things are now consistent between "git status" at command line and "Team / Synchronize Workspace" in Eclipse.

You can get EGit from here or you can add the update site http://download.eclipse.org/egit/updates-2.2 to Eclipse.

Latest Egit Update Site: http://download.eclipse.org/egit/updates

like image 37
DanN Avatar answered Sep 26 '22 19:09

DanN