Skip to content

itsllyaz/gommit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Git Assistant CLI

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.

Features

  • Show current branch name
  • Display latest commit info
  • Get remote repository URL
  • Count total commits in the current branch
  • AI-powered commit messages

Installation

Clone the repo and build the binary:

git clone https://github.com/itsllyaz/gommit.git
cd gommit
go build -o gommit

Make 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/

Setup

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.

  1. Get an API KEY
  2. Export you API KEY as an environment variable
        export AI_API_KEY="your_api_key_here"

Usage

./gommit branch     # Show current branch
./gommit latest     # Show latest commit
./gommit remote     # Show remote URL
./gommit count      # Show total number of commits

Screenshots

gommit gommit-branch gommit-info gommit-status

Built With


made with ❤️

About

Gommit is a minimal Git assistant CLI built with Cobra library

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages