Eclipse Egit Does Not Detect Modified Files

I have been using Egit and Eclipse together for over a year now. Recently, I updated my computer and I had to reinstall everything. Previously, whenever I made changes to a file, it was immediately selected by Egit and displayed with a red highlight and a star next to the file name in the project explorer.

Everything works for me and it works as it was, however whenever I make changes, the changes do not pick up Egit. I need to execute 'git status' so that the files appear ready to be installed in the file explorer. Am I doing something wrong so that Egit automatically detects modified files and does anyone else have this problem?

+6
source share
5 answers
  • what version of egit are you using
  • Do you get the egit command menu if you right-click any resource in your git tracking project?
  • If not, then you need to do the command β€œShare”> β€œShare”> Git, and then check β€œUse or create a repository in the parent folder of the project.” If you use a very recent nightly version of the assembly, this will be automatically checked.
  • when you modify the file tracked by (e) git, the text decorator ">" should be in front of the modified file
  • as soon as you create the modified file (command> Add), the decorator should show an asterisk
  • also in the intermediate view git status should always be displayed for all modified files
+7
source

You need to "add to the index" all the files again

Track changes . Click Team > Add to project node. (This menu item can read Add to Index in recent versions of Egit)

(From EGit docs :)

+3
source

I found that you need to make sure your git repositories appear in the Eclipse Git Repositories view.

  • In the repository view, you click on the [very] small git icon with a green + (plus) sign on the Add and Existing Local Git Repository .
  • Change to a directory that already has a .git subdirectory, and click Finish . Then you will see that a local repo is displayed in this list.
  • Then you can right-click on the repo while it is still in the repository view, and add pull to Import Projects .
  • "Import existing projects." Click "Next."
  • Your project must be disabled. Add it to the working set if necessary. Click Next (possibly Finish).
+2
source

If you have already added your files to Stage, then change the branch, it will ask you to commit / stash / reset

0
source

I ran into the same problem. From the git repository view: right click -> Show in git staging.

0
source

Source: https://habr.com/ru/post/1411846/


All Articles