โก Quickstart Guide¶
Welcome to the Gittxt quickstart! This guide walks you through your first scan using the gittxt
CLI.
Gittxt lets you extract AI-ready textual datasets from local folders or GitHub repositories in seconds.
๐ Minimal Scan (Local Folder)¶
If you're in a local Git project folder, run:
gittxt scan .
This will:
- Auto-detect textual files
- Generate .txt
output in the default output directory
๐ Scan a GitHub Repo¶
To scan a remote repository:
gittxt scan https://github.com/sandy-sp/gittxt
Use the --branch
and --subdir
flags to target specific content:
gittxt scan https://github.com/sandy-sp/gittxt --branch main --subdir src
๐ Customize the Output¶
Use CLI options to control output format, zip bundling, lite mode, and filters:
gittxt scan . \
--output-format txt,json \
--zip \
--lite \
--include-patterns "**/*.py" "**/*.md" \
--exclude-patterns "tests/*"
Common options:
- --output-dir
: Custom location for exports
- --output-format
: Any of txt
, json
, md
- --zip
: Bundle everything in a zip
- --lite
: Generate minimal reports (no metadata)
- --size-limit
: Skip large files
๐งพ Sample Output Structure¶
After scanning, output folders look like this:
<output-dir>/
โโโ txt/
โโโ json/
โโโ md/
โโโ zip/
โ โโโ <repo-name>.zip
โ โโโ manifest.json, summary.json
๐ท Demo¶
โ Success Checklist¶
- [x] CLI shows summary and breakdown
- [x]
.txt
,.json
, or.md
files appear in output dir - [x] No errors or skipped files (check logs if needed)
๐ง Next Steps¶
- Learn advanced filters and exclusions in the Scanning Guide
- Configure project-wide defaults with Configuration
Back: Installation | Forward: User Guide โก