{"id":15584256,"url":"https://github.com/ableinc/git2txt","last_synced_at":"2025-10-06T00:41:12.257Z","repository":{"id":173508093,"uuid":"650845276","full_name":"ableinc/git2txt","owner":"ableinc","description":"Convert all files in git repository to .txt files. Useful for training LLMs on your codebase.","archived":false,"fork":false,"pushed_at":"2024-12-07T11:03:13.000Z","size":6,"stargazers_count":42,"open_issues_count":1,"forks_count":19,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-21T15:58:56.801Z","etag":null,"topics":["git","llm","machine-learning","python3","training-data","txt"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ableinc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-08T00:00:09.000Z","updated_at":"2025-06-10T06:55:43.000Z","dependencies_parsed_at":"2024-12-07T12:17:12.576Z","dependency_job_id":"1dd3650f-d3d3-4ad4-8d0e-196b9eccd001","html_url":"https://github.com/ableinc/git2txt","commit_stats":null,"previous_names":["ableinc/git2txt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ableinc/git2txt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Fgit2txt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Fgit2txt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Fgit2txt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Fgit2txt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ableinc","download_url":"https://codeload.github.com/ableinc/git2txt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ableinc%2Fgit2txt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278542673,"owners_count":26004060,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-05T02:00:06.059Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","llm","machine-learning","python3","training-data","txt"],"created_at":"2024-10-02T20:40:30.670Z","updated_at":"2025-10-06T00:41:12.224Z","avatar_url":"https://github.com/ableinc.png","language":"Python","readme":"# git2txt\n\nConvert all files in git repository to .txt files. This is useful for training LLMs on your codebase.\n\n## How to Use\n\n1. Create new .env file by copying example.env\n```shell\ncp example.env .env\n```\n2. Add necessary fields. The default fields are good to start with.\n```bash\nGIT_PROJECT_DIRECTORY=/path/to/git/repo\nIGNORE_FILES=.env,package-lock.json\nIGNORE_DIRS=.git,.vscode,node_modules\nSAVE_DIRECTORY=training_data\nSKIP_EMPTY_FILES=true\n```\n3. Install dependencies. Using a virtual environment is recommended.\n```shell\npython -m pip install -r requirements.txt\n```\n4. Run program\n```shell\npython main.py\n```\n5. You'll see your data files in the ```training_data/``` directory. This will be different if you changed the path via ```SAVE_DIRECTORY``` in ```.env``` file.\n\n\n## Notes\n- This program requires Python version 3.6 or later. It uses the f-string formatting technique introduced in Python 3.6.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fableinc%2Fgit2txt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fableinc%2Fgit2txt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fableinc%2Fgit2txt/lists"}