0.7.3 • Published 12 months ago

@laststance/git-gpt-commit v0.7.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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'.

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.

0.7.2

12 months ago

0.7.1

1 year ago

0.7.3

12 months ago

0.7.0-beta02

1 year ago

0.7.0-beta03

1 year ago

0.7.0-beta04

1 year ago

0.7.0-beta05

1 year ago

0.7.0-beta01

1 year ago

0.7.0-beta06

1 year ago

0.7.0-beta07

1 year ago

0.7.0-beta08

1 year ago

0.7.0-beta09

1 year ago

0.7.0

1 year ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago