Skip to content
other7 active rulesVerified 2026-09-30

Stata .gitignore Template

Standard Stata 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 Stata
Search for templates
Quick add:
Selected1
Stata
Selected Templates (1)
.gitignore
7 rules
### Stata ###
# .gitignore file for git projects containing Stata files
# Commercial statistical software: http://www.stata.com
# Stata dataset and output files
*.dta
*.gph
*.log
*.smcl
*.stpr
*.stsem
~*.stswp
# Graphic export files from Stata
# Stata command graph export: http://www.stata.com/manuals14/g-2graphexport.pdf
#
# You may add graphic export files to your .gitignore. However you should be
# aware that this will exclude all image files from this main directory
# and subdirectories.
# *.ps
# *.eps
# *.wmf
# *.emf
# *.pdf
# *.png
# *.tif
27 lines•UTF-8
Deterministic

Raw Stata .gitignore

Crawlable upstream source template
stata.gitignore•26 lines•UTF-8
# .gitignore file for git projects containing Stata files
# Commercial statistical software: http://www.stata.com
# Stata dataset and output files
*.dta
*.gph
*.log
*.smcl
*.stpr
*.stsem
~*.stswp
# Graphic export files from Stata
# Stata command graph export: http://www.stata.com/manuals14/g-2graphexport.pdf
#
# You may add graphic export files to your .gitignore. However you should be
# aware that this will exclude all image files from this main directory
# and subdirectories.
# *.ps
# *.eps
# *.wmf
# *.emf
# *.pdf
# *.png
# *.tif

Key Pattern Breakdown

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.