0.7.0 • Published 3 months ago

@laststance/git-gpt-commit v0.7.0

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

Original package doesn't work due to config mistake 'package.json'. https://github.com/nooqta/git-commit-gpt
Tharefore 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 languege 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-3. 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.0-beta02

3 months ago

0.7.0-beta03

3 months ago

0.7.0-beta04

3 months ago

0.7.0-beta05

3 months ago

0.7.0-beta01

3 months ago

0.7.0-beta06

3 months ago

0.7.0-beta07

3 months ago

0.7.0-beta08

3 months ago

0.7.0-beta09

3 months ago

0.7.0

3 months ago

0.6.1

6 months ago

0.6.0

6 months ago

0.5.0

7 months ago

0.3.5

8 months ago

0.3.4

8 months ago

0.3.2

8 months ago

0.3.1

8 months ago

0.3.0

8 months ago

0.2.0

8 months ago

0.1.0

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago

0.0.0

8 months ago