Skip to content

โšก 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

Gittxt 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


Back: Installation | Forward: User Guide โžก