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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84585436b8bd401170b14e75be8ee69c265ff6cd975110657e6cc809401229cd |
|
MD5 | 96b530df8de967b6051a2f17c7a757c2 |
|
BLAKE2b-256 | 26663920e4350deac171dae3953dd967cae5101e7f6cb63eba332d04bedab673 |
Close
Hashes for gpt_repository_loader-0.9.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da3c5a9e148f0e1588460d10b3128d79c86d588de31ab4c86951e5929755c33d |
|
MD5 | 41fd689046aa3b9540af14b882d15b1c |
|
BLAKE2b-256 | 0ec8b18ef68c160ec1044fa0a82d9526443bc2638bd2f41aae2c67bc9b0afb9d |