.gitignore file in Sourcetree not working

前端 未结 8 1363
走了就别回头了
走了就别回头了 2021-01-30 01:23

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

8条回答
  •  终归单人心
    2021-01-30 01:52

    In addition to the answers already provided above, also note that the .gitignore file will not work if it is not in the root folder.

    I had a project where .gitignore was here /projectname/.gitignore and therefore was not being read. So I moved it to /.gitignore and all was well again.

提交回复
热议问题