| Crates.io | gitsnap |
| lib.rs | gitsnap |
| version | 0.2.0 |
| created_at | 2025-01-28 22:37:03.842647+00 |
| updated_at | 2025-04-17 18:57:01.340488+00 |
| description | A tool to take snapshots of GitHub repositories in a single text file. |
| homepage | |
| repository | https://github.com/flaviodelgrosso/GitSnap |
| max_upload_size | |
| id | 1534111 |
| size | 48,496 |
GitSnap is a CLI tool to take snapshots of GitHub repositories and convert them into readable text files.
gitsnap allows you to download a GitHub repository and convert its contents into a single text file. You can specify a file size threshold to skip large files or include all files regardless of size. The tool also supports debug mode for verbose logging.
You can download the binaries of the latest release from here.
To install gitsnap, you need to have Rust and Cargo installed. You can install Rust and Cargo from rustup.rs.
You can install gitsnap from crates.io using Cargo.
cargo install gitsnap
Alternatively, you can build the project from source.
git clone <https://github.com/flaviodelgrosso/GitSnap.git>
cd gitsnap
cargo build --release
Run the gitsnap command with the required arguments:
gitsnap <repository> [OPTIONS]
repository: The GitHub repository URL or user/repo format (e.g., 'user/repo' or 'https://github.com/user/repo'). This argument is required.-o, --output <FILE>: Specify the output file path (defaults to repo_name.txt).-t, --threshold <MB>: Set file size threshold in MB for text conversion (default: 0.1 MB). Files larger than this are skipped unless --include-all is used.--include-all: Include all files, regardless of size or type. Overrides the threshold.--debug: Enable debug mode with verbose logging.gitsnap user/repo -o output.txt -t 1.0 --debug
This command will download the user/repo repository, process files up to 1.0 MB, and save the output to output.txt with debug mode enabled.
This project is licensed under the MIT License. See the LICENSE file for details.