Skip to content

sweriko/codetotext

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 

Repository files navigation

Codebase to text

This script transforms your entire codebase into a perfectly tagged and structured text file —ideal for tools like ChatGPT. It uses gitingest.

image

Prerequisites

  • Windows Users: Run the script in a WSL terminal.
  • Python: Ensure Python is installed.

Installation

Install gitingest:

pip install gitingest

Then run the script:

./dump.sh

You can exclude files in two ways:

  1. Command Line Option:
    Add the --exclude-pattern option when running the script, for example:

    ./dump.sh --exclude-pattern 'file_name'
  2. 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>  

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%