1

I have experienced some issues with Eclipse and EGit.

When I create a new class in my existing repository, it is kind of not linked an changes in this class aren't visible in the unstaged changes in the git view of eclipse.

I have tried to track the new class via the team menu of the right click menu of the class, but didn't find any way of fixing my problem.

I have the latest version of eclipse installed.

Joachim Sauer
  • 302,674
  • 57
  • 556
  • 614
Timon R
  • 21
  • 5
  • Any chance you have added that path under `.gitignore`? – jagad89 Dec 09 '19 at 16:43
  • @jagad89 oh yeah. Had the full path of the local repository in it. Thanks! – Timon R Dec 09 '19 at 21:26
  • 1
    @jagad89 Would you like to add this as an answer? You could also explain how this can be seen from the (missing) decoration of the file icon. – howlger Dec 10 '19 at 09:03
  • Actually I have never used `Egit`, but the problem he explained is a very common mistake. – jagad89 Dec 10 '19 at 10:03
  • Does this answer your question? [Can't add new file to repository in EGit](https://stackoverflow.com/questions/12808656/cant-add-new-file-to-repository-in-egit) – howlger Dec 10 '19 at 10:24
  • @jagad89 is there a way to push your comment to be an answer? Or do I have to write it myself? – Timon R Dec 11 '19 at 19:56

1 Answers1

1

The problem was, that the full path of the repository was in the gitignore. Deleted the content of it and everything is back fine.

Timon R
  • 21
  • 5