gommit

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 1 Imported by: 0

README


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 ❤

Documentation

Overview

Copyright © 2025 NAME HERE <EMAIL ADDRESS>

Directories

Path Synopsis
// utils/print.go
// utils/print.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL