idea提交git時過濾掉不必要的檔案
- 進入Preferences->plugins 中下載一個(.ignore)插件
- 在專案本地new一個(.gitignore)的檔案
- 新增需要過濾檔案的后綴及檔案夾
- 使用git 命令git本地快取
- 使用git add . 推送到遠程服務器
git 洗掉本地快取命令
git rm -r -f --cached . -f 是強制洗掉 最后的點 是洗掉所有
git rm -r --cached .
.gitignore 檔案內容
### Java template # Compiled class file *.class # Log file *.log # BlueJ files *.ctxt # Mobile Tools for Java (J2ME) .mtj.tmp/ .idea/ # Package Files # *.jar *.war *.nar *.ear *.zip *.tar.gz *.rar *.iml # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* yt-access-server/target/
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/538915.html
標籤:Java
