Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@laststance/git-gpt-commit

Package Overview
Dependencies
Maintainers
0
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@laststance/git-gpt-commit

An AI-powered Git extension that generates commit messages using OpenAI's GPT-3, streamlining the commit process and improving developer productivity.

  • 0.7.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
0
Weekly downloads
 
Created
Source

Original package doesn't work due to config mistake 'package.json'. https://github.com/nooqta/git-commit-gpt
Therefore I fix it and republish as a '@laststance/git-gpt-commit'.

Git Commit GPT-4o

An AI-powered Git extension that generates commit messages using OpenAI's GPT-4o, streamlining the commit process and improving developer productivity.

Installation

There are two ways to install the Git extension: using npm or manual installation.

  • Step1: run the following command:
npm install -g @laststance/git-gpt-commit
  • Step2: move to any language your project root
cd my-rust-project
  • Step3: add .env file to .gitignore
echo -e "\n.env" >> .gitignore
  • Step4: commit .gitignore
git add .
git commit -m 'add .env to .gitignore'

❗️Step3 and 4 must be done for prevent leak your OpenAI API key on Github/GitLab.

  • Step5: Get your openai API key from openai and add .env file to OPENAI_API_KEY.

.env

OPENAI_API_KEY=your_openai_api_key

✅ You've completed all setup!

Usage

After setting up the project, you can use the Git extension in any Git repository:

Stage your changes:

git add .

Run the Git extension:

git gpt commit

The script will summarize the Git changes since the last commit and generate a commit message using gpt-4-turbo-preview. You will be prompted to confirm whether to use the suggested message or cancel the commit.

Credits

Thanks to

License

This project is licensed under the MIT License.

FAQs

Package last updated on 15 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc