Skip to main contentThe Git panel helps you see every change before it lands in your history. You can stage files, preview diffs, and lean on AI for commit messages—all without switching tools.
Review and Select Files
- Use the checkboxes to select the files you want in the next commit.
- Click a filename to open its diff; double-click to pin it in the editor.
- Restore or stash selected files from the overflow menu if you decide they don’t belong in this commit.
Write the Commit Message
- Scroll to the composer at the bottom of the panel.
- Type your summary, or click Generate with AI to draft one based on the selected diffs.
- Edit the generated text as needed—short and descriptive always wins.
If your project doesn’t have a .gitignore, Mistle surfaces a gentle warning before you commit so you can add one and avoid committing build artifacts or secrets.
Commit Your Work
- Press Commit or hit Enter while focused on the composer. Mistle stages the selected files and records the commit in one step.
- A success toast confirms the commit. You’ll see an Undo last commit banner if you catch a mistake right away.
- Click Undo to move the changes back to your working tree without losing them.
Good Hygiene Between Commits
- Keep commits focused on a single task so reviews stay readable.
- Generate a new commit after major checkpoints—tests passing, feature complete, bug fixed.
- If you’re not ready to commit but need a clean working tree, stash the selected files and pop them when you return.