This script transforms your entire codebase into a perfectly tagged and structured text file —ideal for tools like ChatGPT. It uses gitingest.
- Windows Users: Run the script in a WSL terminal.
- Python: Ensure Python is installed.
Install gitingest:
pip install gitingest
Then run the script:
./dump.sh
You can exclude files in two ways:
-
Command Line Option:
Add the--exclude-pattern
option when running the script, for example:./dump.sh --exclude-pattern 'file_name'
-
Edit the Script:
Directly modify the dump.sh file to specify files to exclude.
Note: Customize the output requirements/prompt in the script to better suit your use case, and you can add more xml subsections inside the context section e.g
<docs>
</docs>