Inspecting changes and branches
Inspect uncommitted changes, commits, and branches with GitButler.
GitButler adds concise views for common workspace tasks, while normal read-only Git commands such as git show, git log, and git blame continue to work.
Inspect the workspace
Start with:
This shows the uncommitted area, applied branches and stacks, commit order, and upstream state. Add -f to include the files in each commit:
The first token on each entity line is the CLI ID you can pass to other but commands.
Diff changes
Run but diff without a target to inspect all uncommitted changes:
Pass one CLI ID to narrow the diff:
These examples inspect an uncommitted file, a branch, a commit, and one file within a commit. but diff accepts at most one target, so run it again to inspect another entity.
You can still use git diff when you need Git's raw patch format:
List branches
Run but branch to show the active branch and the 20 most recently updated branches:
The list includes useful context such as how far each branch is ahead of the target and whether it merges cleanly into upstream.
Filter branches by a partial name:
Useful filters include:
--allto include all branches--localor--remoteto limit the source--reviewto fetch review information--no-aheadand--no-checkto skip slower calculations
Inspect a branch
Show the commits on a branch that haven't landed in the target:
Add details when you need them:
Use --ai to generate a summary of the branch changes:
Inspect a commit
Pass a commit's CLI ID or SHA to but show:
For a branch, but show <branch> --verbose includes full commit messages and changed files.
Delete a branch
Deleting a branch removes it and its commits from the workspace. Check the branch before deleting work you may still need:
GitButler asks for confirmation when the branch contains unpushed commits.
Last updated on