Skip to content
项目

关于

Convert all files in git repository to .txt files. Useful for training LLMs on your codebase.

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
0

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

git2txt

Convert all files in git repository to .txt files. This is useful for training LLMs on your codebase.

How to Use

  1. Create new .env file by copying example.env
cp example.env .env
  1. Add necessary fields. The default fields are good to start with.
GIT_PROJECT_DIRECTORY=/path/to/git/repo
IGNORE_FILES=.env,package-lock.json
IGNORE_DIRS=.git,.vscode,node_modules
SAVE_DIRECTORY=training_data
SKIP_EMPTY_FILES=true
  1. Install dependencies. Using a virtual environment is recommended.
python -m pip install -r requirements.txt
  1. Run program
python main.py
  1. 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.

Notes

  • This program requires Python version 3.6 or later. It uses the f-string formatting technique introduced in Python 3.6.

探索相关项目

加载中…