Git-to-Text is a web application that allows you to upload a Git repository folder, select relevant file types, and export the contents of those files into a single text file. This consolidated file can be used as input for large language models (LLMs) to analyze or learn about the codebase.
- Upload Git Repositories: Easily upload your local Git project folder.
- File Type Selection: Choose which file types (e.g.,
.js,.jsx,.py, etc.) to include in the export. - Preview Included Files: See which files will be included or excluded based on your selection.
- Export as Text: Download a single
.txtfile containing the concatenated contents of all selected files. - LLM Ready: The exported file is ideal for feeding into LLMs for code analysis, documentation, or learning.
- Start the App:
- Install dependencies:
npm install - Run the development server:
npm start
- Install dependencies:
- Upload a Folder:
- Click the upload area and select your Git project folder.
- Select File Types:
- Choose which file extensions to include (e.g.,
.js,.jsx).
- Choose which file extensions to include (e.g.,
- Review Files:
- Preview the list of files that will be included or excluded.
- Export:
- Click the export button to download a single text file with all selected files' content.
- Preparing code for LLM-based code review or documentation generation.
- Summarizing large codebases for onboarding or analysis.
- Creating datasets for machine learning or AI research.
- React (Vite or Create React App)
- Tailwind CSS for styling
public/
...
src/
components/
FileSelectionPanel.jsx
FolderUpload.jsx
Header.jsx
OutputPanel.jsx
hooks/
useFolderProcessor.js
lib/
constants.js
App.jsx
index.js
index.css
- Clone the repository:
git clone <repo-url> cd git-to-text
- Install dependencies:
npm install
- Start the development server:
npm start
MIT License