Skip to content
devops4 active rulesVerified 2026-09-30

Bazel .gitignore Template

Bazel output symlinks, bazel-bin, and execution 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 Bazel
Search for templates
Quick add:
Selected1
Bazel
Selected Templates (1)
.gitignore
4 rules
### Bazel ###
# gitignore template for Bazel build system
# website: https://bazel.build/
# Ignore all bazel-* symlinks. There is no full list since this can change
# based on the name of the directory bazel is cloned into.
/bazel-*
# Directories for the Bazel IntelliJ plugin containing the generated
# IntelliJ project files and plugin configuration. Separate directories are
# for the IntelliJ, Android Studio and CLion versions of the plugin.
/.ijwb/
/.aswb/
/.clwb/
15 lines•UTF-8
Deterministic

Raw Bazel .gitignore

Crawlable upstream source template
bazel.gitignore•14 lines•UTF-8
# gitignore template for Bazel build system
# website: https://bazel.build/
# Ignore all bazel-* symlinks. There is no full list since this can change
# based on the name of the directory bazel is cloned into.
/bazel-*
# Directories for the Bazel IntelliJ plugin containing the generated
# IntelliJ project files and plugin configuration. Separate directories are
# for the IntelliJ, Android Studio and CLion versions of the plugin.
/.ijwb/
/.aswb/
/.clwb/

Key Pattern Breakdown

Core Ignored Rules

Primary upstream ignore rules defined for this technology.

/bazel-*/.ijwb//.aswb//.clwb/

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.