我们做的每个Git项目中都需要一个“.gitignore”文件,这个文件的作用就是告诉Git哪些文件不需要添加到版本管理中。

分享一个.gitignore模板,将下面的内容保存为一个.gitignore文件,存放于git仓库的根目录下。

/target/
!.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/
/.mvn/
/mvnw
/mvnw.cmd
/logs/

 

相关文章:

  • 2021-07-24
  • 2021-09-21
  • 2022-12-23
  • 2021-11-13
  • 2021-11-12
  • 2021-08-27
猜你喜欢
  • 2021-06-12
  • 2021-10-02
  • 2022-12-23
  • 2022-01-04
  • 2021-12-06
  • 2021-11-12
相关资源
相似解决方案