auto-commit-cli
v0.1.3
Published
Automatically commit and push changes using AI-generated commit messages
Downloads
5
Readme
auto-commit-cli
Automatically commit and push changes using AI-generated commit messages.
NOTE: All files will be staged before the commit is made.
The Anthropic API is used to generate the commit message. Therefore, you will need to have an Anthropic API key.
Installation
npm install -g auto-commit-cli
Setting your Anthropic API key
### locally
export ANTHROPIC_API_KEY="xxx" # set your Anthropic API key
### in .zshrc or .bashrc
echo "export ANTHROPIC_API_KEY='xxx'" >> ~/.zshrc # or ~/.bashrc
source ~/.zshrc # or ~/.bashrc
Usage
auto-commit
Optional: Create an alias
echo "alias ac='auto-commit'" >> ~/.zshrc # or ~/.bashrc
source ~/.zshrc # or ~/.bashrc
ac