프로젝트
GitHub에서 보기
ableinc/git2txt
소개
Convert all files in git repository to .txt files. Useful for training LLMs on your codebase.
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalgit2txt
Convert all files in git repository to .txt files. This is useful for training LLMs on your codebase.
How to Use
- Create new .env file by copying example.env
cp example.env .env
- 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
- Install dependencies. Using a virtual environment is recommended.
python -m pip install -r requirements.txt
- Run program
python main.py
- You'll see your data files in the
training_data/directory. This will be different if you changed the path viaSAVE_DIRECTORYin.envfile.
Notes
- This program requires Python version 3.6 or later. It uses the f-string formatting technique introduced in Python 3.6.
관련 프로젝트 살펴보기
불러오는 중…