Skip to content
language4 active rulesVerified 2026-09-30

Scala .gitignore Template

Scala target folders, compiled artifacts, and SBT cache. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.

Interactive Stack Generator

Preconfigured with Scala
Search for templates
Quick add:
Selected1
Scala
Selected Templates (1)
.gitignore
4 rules
### Scala ###
*.class
*.tasty
*.log
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
8 lines•UTF-8
Deterministic

Raw Scala .gitignore

Crawlable upstream source template
scala.gitignore•7 lines•UTF-8
*.class
*.tasty
*.log
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

Key Pattern Breakdown

Build Outputs & Compiled Artifacts

Generated binary files, compilation targets, and distribution bundles that can be reliably reproduced from source.

*.class

Execution Caches & Runtime Logs

Diagnostic logs, runtime metadata, test coverage reports, and incremental compiler caches that cause noisy repository diffs.

*.log

Source & Verification

License: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.