Skip to content

petioptrv/flat-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Flatten Git Repo Script

This script takes in as single positional argumnet the path to a git repo. It then flattens all files under git versioning into a single text file with the name flat_{PROJECT_NAME}.txt. For each project file, the output file will contain the path from the git root, along with Markdown code block with the contents of the file.

This script was generated using ChatGPT 4. I had a second conversation that checked the work of the first one and informed my follow-up prompts.

About

Flattens a git repo into a single text files, ready to be fed to an LLM.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages