A utility to convert a Git repository into a text representation.
Project description
gpt-repository-loader
Installation
pip install gpt-repository-loader
Linux Requirements
On Linux, ensure that you have xclip
installed for clipboard functionality. You can install it using:
sudo apt-get install xclip # Debian/Ubuntu
sudo yum install xclip # Fedora/CentOS
How to use?
Go to the directory you are interested in, run
gpt-repository-loader . -c
This will copy ALL the git tracked content in the repository on clipboard and then you can use Gemini/Claude/ChatGPT to ask questions on it.
Available Command Line Flags
repo_path
: (Required) Path to the Git repository.-p
,--preamble
: Path to a preamble file to include before the repository content.-c
,--copy
: Copies the repository contents to the clipboard. If not provided, the output will be written to a file namedoutput.txt
in the current directory.-i
,--ignore
: Additional file paths or patterns to ignore. You can specify multiple paths or patterns.--include-js-ts-config
: Include JavaScript and TypeScript config files (which are ignored by default).
Examples
# Ignore specific files or directories
gpt-repository-loader . -c -i "*.log" "temp_files/" "config.ini"
# Include JS/TS config files and ignore a specific directory
gpt-repository-loader . --include-js-ts-config -i "node_modules/"
What to use it for?
- Build a README for codebases
- Work with Legacy code
- Debug issues
Gemini's 1M context window is REALLLY big, and it under utilized.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for gpt-repository-loader-0.9.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9006262f355d4a3ad35c81c50f9fa914c75712da34c6777577cf848fe2b72775 |
|
MD5 | eccf133f49ea757477e957e2125d7f48 |
|
BLAKE2b-256 | 151189f9c34c3bcfe6dabac20e76c9cc9f69d637a11b5ca544c235225fb12ae1 |
Close
Hashes for gpt_repository_loader-0.9.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d52873950f6258c6181c25a57791d020389cec9f9d4dce00847071b097d1ffa |
|
MD5 | 4652ae060eef538819e21273d1bcfe6c |
|
BLAKE2b-256 | c52919e116b332227715b82f8ae7d5028c9169dad3b03b946f18294bbdf387e0 |