1 git add .
2 git commit -m “注释”
3 git push
1 vim .gitignore
2 git status
3 git add .gitignore
4 git status
5 git config core.excludesfile .gitignore
6 cat .git/config
7 git push origin master
8 git rm -r --cached .
9 git add .
10 git commit -m “注释”
11 git push
其中第一步 在gitignore配置文件中将自己要忽略的文件夹 文件类型进行注释即可
cat .gitignore
target/
*.iml
.idea/
成功之后 就自然将每次编译的文件进行了忽略
本文是对https://blog.csdn.net/lk142500/article/details/82869018的整理总结