Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

pwwang/vscode-gptcommit

Repository files navigation

Automated git commit messages using GPT models viagptcommit for VS Code.

vscode-gptcommit

Installation

Note: Do NOT installgptcommit hook viagptcommit install under the root of your git repo.

Supported Versions

Extension VersionVS Code Versiongptcommit Version
< 0.1.01.75+0.1.16
0.1.x1.70+0.1.16
0.2.x1.70+0.3.0
0.3.x1.70+0.5.x

Commands

Run viaCtrl+Shift+P orCmd+Shift+P:

  • GPTCommit: Generate Git Commit MessageGenerate the commit message

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

  • GPTCommit: Use a different OpenAI modelUse a different OpenAI model. For a list of public OpenAI models, checkout theOpenAI docs. Default is nowgpt-3.5-turbo.

  • GPTCommit: Set output languageSet the output language. Default isen.

  • GPTCommit: Show per-file summaryEnable "show per-file summary"? It's disabled by default.

  • GPTCommit: Disable conventional commitDisable "conventional commit"? It's enabled by default.

  • GPTCommit: Open gptcommit configuration fileOpen the local gptcommit configuration file (~/.git/gptcommit.toml)

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.
    • Note that to show per-file summary, you need to enable "show per-file summary" by running theGPTCommit: Show per-file summary command.
  • GptcommitPath: Path to thegptcommit 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

Note that now all the configuration via the extension is saved in the.git/gptcommit.toml file. If you have to change advanced configuration, you can edit the.git/gptcommit.toml file directly, but make sure you know what you are doing. You can also use theGPTCommit: Open gptcommit configuration file command to open the configuration file.

If you want to use the configuration globally, you can copy the.git/gptcommit.toml file to~/.config/gptcommit/config.toml, or just the sections of the configuration you want to be used globally.

Also refer to thegptcommit 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

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp