Skip to content

pwwang/vscode-gptcommit

Repository files navigation

vscode-gptcommit

Automated git commit messages using GPT models via gptcommit for VS Code.

vscode-gptcommit

Installation

Note: Do NOT install gptcommit hook via gptcommit install under the root of your git repo.

Commands

Run via Ctrl+Shift+P or Cmd+Shift+P:

  • GPTCommit: Generate Git Commit Message Generate the commit message

  • GPTCommit: Setup OpenAI API Key Setup the OpenAI API Key. You can get the API key from OpenAI

  • GPTCommit: Try a different OpenAI model Try a different OpenAI model. For a list of public OpenAI models, checkout the OpenAI docs.

Extension Settings

  • ExpressMode: If true, generated message will be filled into the Source Control commit message input box directly, instead of opening a new editor.
  • ExpressModeContent: Content of the message to fill in the express mode.
  • GptcommitPath: Path to the gptcommit executable.
  • OnFiles: Diff of files to use for generating the commit message.
    • staged: Use staged files
    • unstaged: Use unstaged files
    • tryStagedThenUnstaged: Try staged files first, then try unstaged files if no staged files are found

Advanced configuration

The configuration is saved at ~/.config/gptcommit/config.json. You can edit it manually, but it's recommended to use commands inside VS Code to edit the configuration, unless you know what you are doing.

Also refer to the gptcommit documentation for more information.

About

Automated git commit messages using GPT models via gptcommit for VS Code.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •