文章引用自 https://blog.csdn.net/qq_35410620/article/details/90037189
git 推荐配置
target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
disconf.properties
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
# Package Files #
*.jar
*.war
*.ear
*.classpath
!/.project
.project
*.settings
target/
.idea/
.DS_Store
.idea
overlays/
.gradle/
build/
bin/
*.iml
*.log
*.log.gz
out/
MANIFEST.MF
————————————————
版权声明:本文为CSDN博主「tom有了cat」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_35410620/article/details/90037189
然后执行
执行命令
git rm -r --cached .
git add .
git commit -m 'update .gitignore'
git push