Git Ignores and Maven targets

后端 未结 5 1909
予麋鹿
予麋鹿 2020-11-30 17:35

Anyone know if it is possible to ignore all the instances of a particular directory in a file structure managed by git.

I\'m looking to exclude all the \'target\' f

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 18:17

    It is possible to use patterns in a .gitignore file. See the gitignore man page. The pattern */target/* should ignore any directory named target and anything under it. Or you may try */target/** to ignore everything under target.

提交回复
热议问题