Browse Clojure Foundations for Java Developers

Using Git with Clojure

Version-control basics that matter for Clojure projects: formatting, ignores, and REPL artifacts.

Git is the same tool you already know, but Clojure projects tend to generate a different set of artifacts and benefit from consistent formatting.

What to pay attention to

  • Keep generated build outputs out of version control (target/, caches, editor/REPL artifacts).
  • Prefer an auto-formatter so diffs are about meaning, not whitespace.
  • Be mindful of “eval at the REPL” changes: the source of truth is still what is committed in src/ and test/.

Practical tip: a clean .gitignore plus consistent formatting removes a lot of friction in Clojure code reviews.

This section focuses on the small repo hygiene choices that keep teams productive over time.

In this section

Revised on Friday, April 24, 2026