Skip to content

Commit cefa4d3

Browse files
dev: Practicalli standard clojure project git ignore patterns
1 parent 3e38b07 commit cefa4d3

File tree

1 file changed

+43
-14
lines changed

1 file changed

+43
-14
lines changed

.gitignore

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,43 @@
1-
pom.xml
2-
pom.xml.asc
3-
*.jar
4-
*.class
5-
/lib/
6-
/classes/
7-
/target/
8-
/checkouts/
9-
.lein-deps-sum
10-
.lein-repl-history
11-
.lein-plugins/
12-
.lein-failures
13-
.nrepl-port
14-
.cpcache/
1+
# ------------------------
2+
# Clojure Project Git Ignore file patterns
3+
#
4+
# Ignore all except patterns starting with !
5+
# Add comments on separate lines, not same line as pattern
6+
# ------------------------
7+
8+
# ------------------------
9+
# Ignore everthing in root directory
10+
/*
11+
12+
# ------------------------
13+
# Common project files
14+
!CHANGELOG.md
15+
!README.md
16+
17+
# ------------------------
18+
# Include Clojure project & config
19+
!build.clj
20+
!deps.edn
21+
!pom.xml
22+
!dev/
23+
!docs/
24+
!resources/
25+
!src/
26+
!test/
27+
28+
# ------------------------
29+
# Include Clojure tools
30+
!.cljstyle
31+
!.dir-locals.el
32+
!compose.yaml
33+
!Dockerfile
34+
!.dockerignore
35+
!Makefile
36+
!tests.edn
37+
38+
# ------------------------
39+
# Include Git & CI workflow
40+
!.gitattributes
41+
!.gitignore
42+
!.github/
43+

0 commit comments

Comments
 (0)