Git添加推送的忽略

好用请点赞收藏一波!

转发请带上作者名@LLLua和原文地址,谢谢!


先创建 $ touch .gitignore

再写入

*.class

#package file

*.war
*.ear

#kdiff33 ignore
*.orig

#maven ignore
target/

#eclipse ignore
.settings/
.project
.classpatch

#idea
.idea/
/idea/
*.ipr
*.iml
*.iws

#temp file

*.log
*.cahce
*.diff
*.patch
*.tmp

# system ignore
.DS_Store
Thumbs.db

你可能感兴趣的:(干货)