Share, Vote, & Discuss Ideas

We're constantly looking for new ways to improve our products and are asking you to help us by sharing your own ideas, voting for ideas you like, and discussing them with the rest of the community.

.gitignore file in Sourcetree not working

I am working on a maven project and I want to ignore the files generated and stored in the /target folder of my project (Evaluation) root folder.In the root of my git repository I have a .gitignore file with the following entries (backend is just a folder which contains the eclipse project Evaluation)


For some reason SourceTree does not ignore the files stored in these two folders and when I compile my project there are some uncommitted changes which are some .class files inside the /target folder.

Why is this happening ? I also tried to change the .gitignore entries to


but it did not work too.

  • soujanya bargavi
  • Aug 10 2018
  • Attach files
  • Laura Havens commented
    15 Mar 06:07

    I found that by erasing the storehouse, at that point having the .gitignore document in the envelope when the vault is reproduced the overlook record is regarded. Best essay help UK