2

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.

6
  • Any chance you have added that path under .gitignore?
    – jagad89
    Commented Dec 9, 2019 at 16:43
  • @jagad89 oh yeah. Had the full path of the local repository in it. Thanks!
    – Timon R
    Commented Dec 9, 2019 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
    Commented Dec 10, 2019 at 9:03
  • Actually I have never used Egit, but the problem he explained is a very common mistake.
    – jagad89
    Commented Dec 10, 2019 at 10:03
  • Does this answer your question? Can't add new file to repository in EGit
    – howlger
    Commented Dec 10, 2019 at 10:24

1 Answer 1

2

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

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