Early Preview: Commit Composer #4408
justinrobots
announced in
Labs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In GitLens 17.2, we're excited to share an early preview of Commit Composer, a set of AI-powered features that help you organize your Git commits into clear, logical stories. We'd love your feedback as we continue developing it!
🤔 The Problem We're Solving
Every developer faces the commit dilemma:
The reality is that during development, you often discover that a change you just made conceptually belongs with a commit from three commits ago, or that your recent commits would make more sense if they were reorganized completely. But reorganizing commit history manually requires complex Git operations like interactive rebasing, cherry-picking, and amending commits—operations that most of us don't want to spend our time doing.
What if you could commit however feels natural during development, then let AI organize your changes into a clean, logical story when you're ready for review?
✨ What Commit Composer Will Do
Commit Composer will analyze your code changes and use AI to:
The result? A clean commit history that tells the story of your development work—without the manual effort of complex Git operations.
🛠️ How to Use the Preview
There are two main ways to try Commit Composer in 17.2:
1. Generate Commits from Working Directory Changes
Perfect for when you have a bunch of uncommitted changes that you want to organize into meaningful commits.
How to access:
Initiate the
Generate Commits with AI (Preview)
command throughout GitLens:This will analyze your working directory changes and create a series of organized commits with clear titles and descriptions. For safety, your original changes are automatically saved in a stash.
2. Generate New Commits from Existing Changes on a Branch
Great for cleaning up existing commits on a branch before creating a PR.
How to use:
AI Rebase Current Branch onto Commit (Preview)...
This will create a new branch (a safety feature for now) with newly-generated commits that describe all changes you've included from your current branch.
🔄 Undoing AI-Generated Commits
We're working on streamlined undo functionality, but for now you can easily revert these auto-generated commits using the GitLens Commit Graph:
Option 1: Reset and Keep Working Directory Changes
Option 2: Hard Reset and Restore from Stash
This is an early preview, so please keep these limitations in mind:
Safety note: GitLens automatically verifies that no code is lost during the process and will error if any discrepancies are detected.
🗣️ We Want Your Feedback!
As this is a preview feature, your feedback is crucial for making Commit Composer better. We're particularly interested in:
🚀 What's Next?
This preview is just the beginning. We're exploring features like:
Try it out and let us know what you think! Your feedback will help shape the future of how developers work with Git commits.
Have questions, suggestions, or want to share your experience? Comment below!
Beta Was this translation helpful? Give feedback.
All reactions