Git Ignores and Maven targets

后端 未结 5 1918
予麋鹿
予麋鹿 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:10

    add following lines in gitignore, from all undesirable files

    /target/
    */target/**
    **/META-INF/
    !.mvn/wrapper/maven-wrapper.jar
    
    ### STS ###
    .apt_generated
    .classpath
    .factorypath
    .project
    .settings
    .springBeans
    .sts4-cache
    
    ### IntelliJ IDEA ###
    .idea
    *.iws
    *.iml
    *.ipr
    
    ### NetBeans ###
    /nbproject/private/
    /build/
    /nbbuild/
    /dist/
    /nbdist/
    /.nb-gradle/
    

提交回复
热议问题