A lightweight command-line tool to help you interact with Git more easily. Built with Cobra, this assistant provides quick access to common Git tasks like checking the current branch, viewing the latest commit, and getting the remote URL.
- Show current branch name
- Display latest commit info
- Get remote repository URL
- Count total commits in the current branch
- AI-powered commit messages
Clone the repo and build the binary:
git clone https://github.com/itsllyaz/gommit.git
cd gommit
go build -o gommitMake it globally accessible(Optional) if you want to use GOMMIT from anywhere in you terminal, move it to a directory in you $PATH:
sudo mv gommit /usr/local/bin/To enable the AI-powered commit messages, you'll need an API KEY, We have to options but the most easy one is from Google AI Studio.
- Get an API KEY
- Sign up at Google AI Studio
- Generate a new API KEY from you studio
- Export you API KEY as an environment variable
export AI_API_KEY="your_api_key_here"
./gommit branch # Show current branch
./gommit latest # Show latest commit
./gommit remote # Show remote URL
./gommit count # Show total number of commits
made with ❤️