{"id":21980067,"url":"https://github.com/laststance/git-gpt-commit","last_synced_at":"2026-01-08T11:53:13.060Z","repository":{"id":193688236,"uuid":"689325810","full_name":"laststance/git-gpt-commit","owner":"laststance","description":"An AI-powered Git extension that generates commit messages using OpenAI's gpt-4-turbo-preview, streamlining the commit process and improving developer productivity.","archived":false,"fork":false,"pushed_at":"2024-07-15T11:30:10.000Z","size":7572,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-29T08:46:56.088Z","etag":null,"topics":["git","npm-package","openai-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/laststance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-09T13:04:11.000Z","updated_at":"2024-07-15T11:30:12.000Z","dependencies_parsed_at":"2023-09-09T13:45:42.798Z","dependency_job_id":"14e7072c-ccfa-4ad1-a129-cfb083ff6e1e","html_url":"https://github.com/laststance/git-gpt-commit","commit_stats":null,"previous_names":["laststance/git-commit-gpt","laststance/git-gpt-commit"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststance%2Fgit-gpt-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststance%2Fgit-gpt-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststance%2Fgit-gpt-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laststance%2Fgit-gpt-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laststance","download_url":"https://codeload.github.com/laststance/git-gpt-commit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227174141,"owners_count":17742399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","npm-package","openai-api"],"created_at":"2024-11-29T17:09:27.832Z","updated_at":"2026-01-08T11:53:13.054Z","avatar_url":"https://github.com/laststance.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!WARNING]\n\u003e Latest version not working at the time. Please download `v0.9.10`\n\n\u003ch1 align=\"center\"\u003e\n    Git GPT Commit\n\u003c/h1\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ccode\u003eAn AI-powered Git extension\u003c/code\u003e that generates commit messages using OpenAI's models,  \n    streamlining the commit process and improving developer productivity.\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./assets/cover_image1540x1000.png\" alt=\"cover_image\"/\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n📺 [Demo Video](https://www.youtube.com/watch?v=-0iVFHxXawo)\n📖 [v0.9.0 Release Post](https://dev.to/malloc007/ive-just-released-git-gpt-commit-v090-13of)\n\n## Installation\n\nThere are two ways to install the Git extension: using npm or manual installation.\n\n- **Step1:** run the following command:\n\n```bash\nnpm install -g @laststance/git-gpt-commit@0.9.10\n```\n\n- **Step2:** add your OpenAI API key using the `git gpt open-api-key`\n\n```bash\ngit gpt open-api-key\n```\n\n![open-api-key](./assets/open-api-key.png)\n\n---\n\nSelect `Add or update API key` from the menu and enter your API key when prompted. Your key will be securely stored in your user configuration.\n\n- **Step3:** commit your changes with `git gpt commit`\n\n```bash\ngit add --all\ngit gpt commit // generate commit message with AI\n```\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"./assets/preview.gif\" /\u003e\n\u003c/p\u003e\n\n✅ You've completed all setup!\n\n### Available Commands\n\n- **Commit with AI-generated message**\n\n  ```bash\n  git gpt commit\n  ```\n\n  Generates a commit message based on your staged changes.\n\n- **Select AI Model**\n\n  ```bash\n  git gpt model\n  ```\n\n  Choose from available models (gpt-4o, gpt-3.5-turbo-instruct, gpt-4-turbo, gpt-4).\n\n- **Change Commit Message Language**\n\n  ```bash\n  git gpt lang\n  ```\n\n  Select the language for commit messages (English, Spanish, Japanese, French, German, Italian, Korean, Chinese, Dutch, Russian, Portuguese).\n\n- **Toggle Commit Prefix**\n\n  ```bash\n  git gpt prefix\n  ```\n\n  Enable/disable conventional commit prefixes (feat:, fix:, chore:, etc.).\n\n- **Manage OpenAI API Key**\n\n  ```bash\n  git gpt open-api-key\n  ```\n\n  Add, update, display, or delete your stored OpenAI API key.\n\n- **Show Current Configuration**\n  ```bash\n  git gpt config\n  ```\n  Display your current settings (model, language, prefix status, API key).\n\n### Configuration\n\nYour settings are stored in `~/.git-gpt-commit-config.json` and automatically loaded when you use the extension. You can manage your configuration through the commands above or directly edit this file.\n\n## Credits\n\n\u003e Original package doesn't work due to config mistake 'package.json'. https://github.com/nooqta/git-commit-gpt  \n\u003e Therefore I fix it and added some features as a '@laststance/git-gpt-commit'.\n\nThanks to\n\n- Author of [original package](https://github.com/nooqta/git-commit-gpt)\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaststance%2Fgit-gpt-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaststance%2Fgit-gpt-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaststance%2Fgit-gpt-commit/lists"}