Git上传文件时忽略制定目录(IDEA)

  1. settings--plugins--搜索并下载.ignore插件,然后重启
  2. 右键项目NEW--.ignore file--.ignore file(Git);如下图

### 忽略文件夹
.idea
src/test
target

### Java template
# 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*
posted @ 2021-11-01 10:06  novae  阅读(200)  评论(0编辑  收藏  举报