Mr. Safari
Mr. Safari

Reputation: 11

Unstaged changes in Eclipse, but no changes in git

When I change something in my repository I see some "Unstaged Changes" in Eclipse, but when I use git at the same time, it tells me that there are not any updates in my repository. Why is that? Should I change or configure something to see changes at the same time? Or is that normal behavior?

Upvotes: 1

Views: 6292

Answers (3)

Unique
Unique

Reputation: 1

  1. Right cick on project. Go to: Team -> Synchronize workspace.
  2. Click Yes on change prespective dialog box. You should see the list of changes on left hand side with > symbol.
  3. Right click on project and click overwrite. This will prompt to if you want to overwrite the local changes.
  4. Click Yes.

This will remove the local changes and you will no longer see the unwanted unstaged changes during git staging.

Upvotes: 0

Michael
Michael

Reputation: 2250

This can happen if any of the files are inadvertently checked in with a character case inconsistencies in the path.

You might need to do something like:

git mv Path/file.c path/file.c 

Upvotes: 0

Moshe D
Moshe D

Reputation: 778

It happens to me many times, apparently there is a bug on git client in Eclipse

What do i do, and helped me:

Try to stage the files and then unstage them via Eclipse

after that those files disappear form the unstaged area in Eclipse.

Upvotes: 1

Related Questions