Skip to main content

AI-powered Git commit message helper

Project description

GitAssist README

GitAssist

GitAssist is a command-line tool that uses OpenAI to generate commit messages and pull request descriptions based on your Git history and staged changes. It streamlines your Git workflow by suggesting clear, concise, and contextually appropriate messages.

Features

  • Automatically generate commit messages from staged changes
  • Automatically generate PR titles and descriptions from commit history
  • Push the current branch and open the PR creation page on GitHub or GitLab

Installation

Clone the repository and install the CLI tool in editable mode:

pip install --editable .

Usage

Initialize the tool with your OpenAI API key:

GitAssist init

GitAssist README

Generate and commit with an AI-suggested message:

GitAssist commit

Generate a PR title and description, push your branch, and open the PR page:

GitAssist new-pr --base main

Requirements

  • Python 3.7+
  • git must be installed and available on your system path
  • A valid OpenAI API key

Assumptions

GitAssist assumes a few things about your development workflow:

  1. Branching Model: You are working on a feature branch that diverged from a long-lived base branch like main.
  2. Staging Area: When running GitAssist commit, you have already staged your changes.
  3. Remote Setup: You have a remote named origin pointing to a GitHub or GitLab repository. GitAssist README
  4. Authentication: You are authenticated with the remote (e.g., via SSH or HTTPS credentials) and have permission to push.
  5. Push Before PR: Your local branch does not need to be pushed manually before PR creation — GitAssist pushes it for you.
  6. Platform Detection: GitAssist can detect whether you're using GitHub or GitLab based on your origin URL.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitassist-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gitassist-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file gitassist-0.1.0.tar.gz.

File metadata

  • Download URL: gitassist-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for gitassist-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7c144d338243bf05f5086962c4dbf38b8b4c7ddb5a85a5f4c030e7630c3c4d8f
MD5 e83aed3cf640179874d7d8d902746265
BLAKE2b-256 3b91dccd175a40d060bae85981b70c52a75778f8de34e0119ca1fd4ed9b0f7e7

See more details on using hashes here.

File details

Details for the file gitassist-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gitassist-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for gitassist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c8330fbe99a246bede78972f5c303cd257c9e018c37363524c6fd400e59c1bc
MD5 971e16b93e749497beeac30e8525e8f9
BLAKE2b-256 288fcd1e694a6667eee66004e2c79e84d725c531b65ffba647a933ec55327b36

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page