忽略文件
與項目的實際功能無關,不參與服務器上部署運行。把它們忽略掉能夠屏蔽IDE工具之間的差異。
eclipse特定文件
IDEA特定文件
Maven工程的target目錄
在windows的家目錄中創建一個文件並編輯
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
.classpath
.project
.settings
target
.idea
*.iml
在.gitconfig文件中引用忽略規則文件
在家目錄中有一個gitconfig文件,我們進行編輯區引用我們創建的忽略文件:這裏要使用“正斜線(/)”,不要使用“反斜線(\)”
[core]
excludesfile = C:/Users/SmallScorpion/git.ignore