Gitwit is a VS Code extension that uses the power of AI to generate meaningful and concise Git commit messages based on the changes you make in your repository. Save time, eliminate writer’s block, and maintain consistent commit history with Gitwit!
- AI-Generated Commit Messages: Automatically generate commit messages tailored to your code changes.
- Customizable Suggestions: Edit and refine AI-generated suggestions directly within the extension.
- Seamless Git Integration: Works seamlessly with your Git workflow.
- Clipboard Integration: Generated messages are automatically copied to your clipboard for easy use.
- User-Friendly Interface: Lightweight and easy-to-use UI integrated into VS Code.
- Open VS Code.
- Go to the Extensions view by clicking the Extensions icon in the Activity Bar on the side of the window or pressing
Ctrl+Shift+X
(Windows/Linux) orCmd+Shift+X
(Mac). - Search for
GitWit
. - Click Install.
Alternatively, download and install Gitwit from the VS Code Marketplace.
After installing Gitwit, run the following commands to set up the extension:
-
Select AI Model: Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
), typeGitWit: Select AI Model
, and pressEnter
. -
Enter API Key: Open the Command Palette again, type
GitWit: Enter API Key
, and pressEnter
.
Supported models include:
gpt-4o
gpt-4o-mini
o1-preview
o1-mini
gpt-4-turbo
gpt-4
gpt-3.5-turbo
gemini-1.5-flash
gemini-1.5-pro
gemini-1.0-pro
- Make Changes: Modify your code files as usual.
- Stage Changes: Stage your changes using Git (
git add
or the Source Control panel in VS Code). - Generate Commit Message:
- Open the Command Palette (
Ctrl+Shift+P
orCmd+Shift+P
). - Type
Gitwit: Generate Commit Message
and pressEnter
. - The generated commit message is automatically copied to your clipboard.
- Open the Command Palette (
- Commit Changes: Paste the message into your Git commit command or the VS Code Source Control panel and commit your changes.
- API KEY from either OpenAI or Gemini
- Active internet connection for AI-based functionality.
- Git installed on your system.
Gitwit is open-source and available under the GPL-3.0 License.
Contributions are welcome! If you encounter a bug, have a feature request, or want to contribute code:
- Fork the repository.
- Create a new branch for your changes.
- Submit a pull request.
If you have questions or need help, feel free to open an issue on the GitHub repository.
Thanks to OpenAI and Gemini for providing the AI models that power Gitwit and to the developers who contributed to this project. Let’s make committing easier and smarter!