addyosmani

git2txt

CLI tool to convert GitHub repositories to text files for LLMs

by addyosmani

JavaScript

JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

3 of 6 standards met

Community profile →
57
✓README✓License✓Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 5 in progress · Last activity 1y ago
See all on GitHub →
mcmd

Fixes #13 Changes Added new function to handle all GitHub URL formats consistently: HTTPS URLs (e.g., ) SSH URLs (e.g., ) Short format (e.g., ) Added debug logging to help users understand URL processing Fixed trailing slash and .git suffix handling Testing The fix has been tested with all supported URL formats: 1. HTTPS URL: 2. Short format: 3. SSH URL: ```bash git2txt git@github.com:username/

mcmd · 1y ago
mcmd

Description The tool sometimes generates incorrect output filenames when processing certain GitHub repository URL formats. This happens because the repository name extraction logic doesn't handle all URL formats consistently. Steps to Reproduce 1. Run the tool with a GitHub URL ending in a slash: Expected: Output file named Actual: Output file named 2. Run the tool with a short format URL: Expected: Output file named Actual: Output file named (works correctly) 3. Run the tool with an SSH URL: Expected: Output file named Actual: Output file named (missing .txt extension) Impact Users get unexpected output filenames Some formats result in files without the .txt extension URLs with trailing slashes create files named just

mcmd · 1y ago
MihailTeodor

This PR introduces a new feature that allows users to export a Git repository at a specific commit version. Previously, git2txt only supported exporting the latest version of a repository. With this enhancement, users can now specify a commit hash, and the tool will generate a text representation of the repository at that exact state.

MihailTeodor · 1y ago
Structured data for AI agents

Repository: addyosmani/git2txt. Description: CLI tool to convert GitHub repositories to text files for LLMs Stars: 568, Forks: 58. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Topics: cli, convert, git, github, llm, repository, text. Open PRs: 5, open issues: 7. Last activity: 1y ago. Community health: 57%. Top contributors: addyosmani.