PancrasL的博客

.gitignore 模板

2021-04-01

1

git 项目的 .gitignore 文件模板

Java项目

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 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*

# Eclipse IDE files
**/.classpath
**/.project
**/.settings/

# intellij IDE files
**/*.iml
**/.idea/
**/*.log
**/*.ipr
**/*.iws

# vscode files
.vscode/

# target files
**/target/*

Go项目

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
*.jar

# Test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
coverage.txt

*.idea
*.iml
target/
classes

# go mod, go test
vendor/
logs/
.vscode/

# unit test
remoting/zookeeper/zookeeper-4unittest/
config_center/zookeeper/zookeeper-4unittest/
registry/zookeeper/zookeeper-4unittest/
metadata/report/zookeeper/zookeeper-4unittest/
registry/consul/agent*
metadata/report/consul/agent*
remoting/consul/agent*
config_center/apollo/mockDubbog.properties.json

# vim stuff
*~
.*.sw?
/license-header-checker-linux/
/license-header-checker-linux.zip

# macOS
.DS_Store

C++项目