- GitButler works in any Git repository without running a setup or being on the gitbutler/workspace ref
- GitButler switches to gitbutler/workspace only when a second parallel branch is applied and moves back when returning to one branch
- Linked Git worktrees can be used directly in GitButler, including worktrees created by other apps, shown in the CLI status or as GUI lanes
- Existing worktrees are archived on upgrade and can be restored from the Worktrees page in Project settings or with the but CLI
- Projects use a local target branch so GitButler works on repositories without a remote
- Commit signing honors X.509 signing and gpg.ssh.defaultKeyCommand
- SHA-256 repositories support commit signing, rewording, undo and push
- Branches can be dragged below the last branch in a stack
- but split moves files or hunks out of a commit into a new commit above it
- but diff <commit> shows hunk IDs so squash, move, uncommit and discard can work on single hunks of a commit
- but merge and but pull work without a remote using the local target branch
- but merge --ff-only refuses merges that cannot fast-forward
- but commit, squash, move and split read the commit message from a file or stdin with -F/--file
- but status marks the checked-out branch with [HEAD]
- TUI can squash several marked commits into one and archive or unarchive worktrees
- Faster refreshes in Git LFS repositories and after undo, and faster workspace updates in repositories with many pack files
- Workspace update previews no longer sign temporary commits or disable signing when a preview signature fails
- GitButler no longer installs its own pre-commit and post-checkout hooks behavior changed · inferred, marked in the notes below
- zz is replaced by @ for uncommitted changes in the CLI
- but land is renamed to but merge, with land still working as an alias deprecated · inferred, marked in the notes below
- but setup is removed because but works in any repository, and but init replaces but setup --init removed · inferred, marked in the notes below
- Diff preview no longer jumps to another file when the file list changes
- Workspace loading failures after commits made outside GitButler or a concurrent fetch are fixed
- Partial commits no longer leave Git's index out of sync, and empty commits are no longer created when all selected changes are rejected
- Create branch below no longer moves existing commits into the new branch
- Undo no longer leaves stray branch names, fails to restore deleted branches, or shows files outside a sparse checkout as deleted
- Deleted files no longer reappear as changes after pulling or applying a branch that also deletes them
- Pushing a branch based on gitbutler/workspace no longer accidentally publishes unrelated applied branches
- Merging native stacked pull requests and loading CI checks for pull requests from forks now work on GitHub
- Self-hosted forge detection and repository URLs containing .git within their names are fixed
- Network operations time out when the remote stops responding, and failed Git hooks show their error output
- Git changes appear promptly while builds or dev servers keep writing files
- Windows: commits and amendments preserve executable permissions
- macOS: newly created symlinks, hard links and APFS clones appear promptly
- but review is removed; use but pr instead inferred, marked in the notes below
- but branch new --anchor is removed; use --above instead inferred, marked in the notes below
- ID ranges such as g0-h2 are removed; use single IDs instead inferred, marked in the notes below
5 changes to check, marked in the notes below
From GitButler
Work in any branch without gitbutler/workspace
GitButler now works in any Git repo, without the need to run a setup or to be on gitbutler/workspace ref.
All app operations work as normal. GitButler switches to gitbutler/workspace only when you apply a second parallel branch and moves back when you return to one.
Worktree support
You can now work with linked Git worktrees directly in GitButler. Worktrees created by other apps show up in the CLI status or as lanes in the GUI and support most GitButler operations.
For example you (or your agent) can move individual changes, commits or branches to and from worktrees as needed.
Parallel branches are light & fast while worktrees offer full code isolation so each tool can be used situationally.
Worktrees that already exist when you upgrade start archived. Bring them in from the new Worktrees page in Project settings or with the but CLI.
Discarding changes in a worktree can’t be undone yet.
Changes
- Projects now use a local target branch, so GitButler can be used on repos without a remote
- Faster refreshes in Git LFS repositories and after undo, plus faster workspace updates in repositories with many pack files
- Commit signing now honors more Git settings, including X.509 signing and
gpg.ssh.defaultKeyCommand - SHA-256 repositories now support commit signing, rewording, undo and push
- Workspace update previews no longer sign temporary commits or disable signing when a preview signature fails
- GitButler no longer installs its own
pre-commitandpost-checkouthooks behavior changed · inferred - Branches can now be dragged below the last branch in a stack
CLI
zzis now@for uncommitted changes renamed · inferredbut landis nowbut merge, andlandstill works as an alias deprecated · inferredbut setupis gone becausebutworks in any repository.but initreplacesbut setup --initremoved · inferredbut review,but branch new --anchorand ID ranges such asg0-h2are removed. Usebut pr,--aboveand single IDs instead removed · inferred
Worktrees
but statuslists worktrees with their own IDs and marks ones behind the targetbut worktreecreates, lists, archives, restores and removes worktrees.but worktree newcan start at a commit with--aboveor on an existing branch outside the workspacebut pull --update <workspace|worktrees>picks what to update. A worktree whose branch merged upstream moves to a new branch at the latest target commitbut move <branch> --above <branch>moves a branch between a worktree and the workspace
New in this release:
but splitmoves files or hunks out of a commit into a new commit above itbut diff <commit>shows hunk IDs, sobut squash,but move,but uncommitandbut discardcan work on single hunks of a commitbut mergeandbut pullwork without a remote, using the local target branchbut merge --ff-onlyrefuses merges that can't fast-forwardbut commit,but squash,but moveandbut splitread the message from a file or stdin with-F/--filebut statusmarks the checked-out branch with[HEAD]bis a default alias forbut branch
TUI
- You can squash several marked commits into one
- You can archive (
a) and unarchive (u) worktrees - Mark committed hunks in the details view to discard, squash or move them
- Move a commit's files to another commit, a branch or a new branch
- In move mode,
bmoves commits onto a new branch above the selected one - Undo (
u) works from details mode - The status view scrolls with the mouse wheel, and clicking a row selects it
but tuistarts faster, especially on Linux- Windows:
?and:now respond
Fixes
- Fixes the diff preview jumping to another file when the file list changes
- Fixes workspace loading failures after commits made outside GitButler or a concurrent fetch
- Failed workspace updates now show the error and a retry button; unrelated target or remote history now comes with recovery guidance
- Fixes partial commits leaving Git's index out of sync, and empty commits being created when all selected changes are rejected
- Fixes "Create branch below" moving existing commits into the new branch
- Fixes undo leaving stray branch names, failing to restore deleted branches, or showing files outside a sparse checkout as deleted
- Fixes deleted files reappearing as changes after pulling or applying a branch that also deletes them
- Fixes pushing a branch based on
gitbutler/workspaceaccidentally publishing unrelated applied branches - GitHub and GitLab: Authentication, access and rate-limit errors now explain how to recover and stop repeated background failures
- GitHub: Fixes merging native stacked pull requests and loading CI checks for pull requests from forks
- Fixes self-hosted forge detection and repository URLs containing
.gitwithin their names - Network operations now time out when the remote stops responding; failed Git hooks now show their error output
- Git changes now appear promptly while builds or dev servers keep writing files
- Windows: Commits and amendments now preserve executable permissions
- macOS: Newly created symlinks, hard links and APFS clones now appear promptly
New Contributors
- @bzbetty made their first contribution in https://github.com/gitbutlerapp/gitbutler/pull/16136
- @juanibiapina made their first contribution in https://github.com/gitbutlerapp/gitbutler/pull/16324
- @RaphaelFakhri made their first contribution in https://github.com/gitbutlerapp/gitbutler/pull/16406
- @ZainnQureshii made their first contribution in https://github.com/gitbutlerapp/gitbutler/pull/16041
Full Changelog: https://github.com/gitbutlerapp/gitbutler/compare/release/0.22.3...release/0.23.0
Downloads
Download bins from https://gitbutler.com/