Skip to content
language4 active rulesVerified 2026-09-30

Ballerina .gitignore Template

Standard Ballerina gitignore template from upstream github/gitignore collection. 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 Ballerina
Search for templates
Quick add:
Selected1
Ballerina
Selected Templates (1)
.gitignore
4 rules
### Ballerina ###
# generated files
target/
generated/
# dependencies
Dependencies.toml
# config files
Config.toml
# the config files used for testing, Uncomment the following line if you want to commit the test config files
#!**/tests/Config.toml
13 lines•UTF-8
Deterministic

Raw Ballerina .gitignore

Crawlable upstream source template
ballerina.gitignore•12 lines•UTF-8
# generated files
target/
generated/
# dependencies
Dependencies.toml
# config files
Config.toml
# the config files used for testing, Uncomment the following line if you want to commit the test config files
#!**/tests/Config.toml

Key Pattern Breakdown

Build Outputs & Compiled Artifacts

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

target/

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.