GitShow/addyosmani/git2txt
addyosmani

git2txt

CLI tool to convert GitHub repositories to text files for LLMs

by addyosmani
cliconvertgitgithubllmrepositorytext
Star on GitHubForknpm

JavaScript

563 stars60 forks1 contributorQuiet · 1y agoSince 2024MIT

Meet the team

See all 1 on GitHub →
addyosmani
addyosmani15 contributions

Languages

View on GitHub →
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
Fix: Improve repository name extraction and add debug loggingOpenPR

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
Bug: Output filename incorrectly generated for certain GitHub URL formatsOpenIssue

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
Enhance git2txt to Support Exporting Specific Commit VersionsOpenPR

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

Recent fixes

View closed PRs →
oliverkuchies
Add TypeScript support and update project configurationMergedPR

Add Typescript support Update tests and code to support TS Add types

oliverkuchies · 4mo ago
killerwolf
Add Option to Specify Repository BranchMergedPR

Fixes #4

killerwolf · 1y ago
Structured data for AI agents

Repository: addyosmani/git2txt. Description: CLI tool to convert GitHub repositories to text files for LLMs Stars: 563, Forks: 60. 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.

·@ofershap

Replace github.com with gitshow.dev