Git Assistant is a tool harnessing the power of generative AI to assist Git users.
- chatbot: Engage with a chatbot to question a repository.
- generate-readme: Automatically generate comprehensive README.md files describing Git repositories.
Access to the git-assistant web interface: https://git-assistant.streamlit.app/
git_assistant_demo.mp4
With command line interface, you need to specify you OpenAI API token. Tutorial to get your free API token : https://www.youtube.com/watch?v=EQQjdwdVQ-M"
Install git-assistant
within your environment.
pip install git-assistant
To generate a README.md file for a local git repository, execute the following command in a local git repository.
git-assistant generate-readme
For a remote repository, provide the repo_url
parameter. For example:
# example
git-assistant generate-readme --repo_url=https://github.com/AntoinePinto/easyenvi
To engage with a chatbot associated with a local git repository, execute the following command inside a local git repository.
git-assistant chatbot
For a chatbot linked to a remote repository, specify the repo_url
parameter. For example:
# example
git-assistant chatbot --repo_url=https://github.com/AntoinePinto/easyenvi
git_assistant_command_line_demo.mp4
Note: Only files present in the git repository are used by Git Assistant. Files listed in .gitignore
are not considered.
To select a specific GPT model, utilize the gpt_model
parameter. For example:
git-assistant generate-readme --gpt_model=gpt-4-0613
When you initialise Git Assistant on one of your projects, a .gitassistant
folder is automatically created at the root of your repository. This folder contains the metadata required for the tool to function. By pushing the .gitassistant
folder to your remote repository, you enable your visitors to access the ChatBot more conveniently, without the need to reinitialize git-assistant.
You can also indicate in your README.md file that a chatbot is easily accessible by executing the commands:
pip install git-assistant
Then:
git-assistant chatbot --repo_url=<YOUR_REPO_URL>