GitButler CLI Cheat Sheet
Essential commands for working with GitButler
Use the GitButler CLI to inspect changes, manage parallel or stacked branches, edit commits, and publish your work.
Setup and Teardown
Switching to and from GitButler branch management
Switch to GitButler in the current repository
Go back to vanilla git branch management
Branch Management
Create and manage parallel and stacked branches
List all branches available
Create a new parallel branch
Create a new stacked branch from an existing branch
Apply (enable) a branch to your working directory
Unapply (disable) a branch from your working directory
Remote Operations
Push changes and interact with forges
Push one branch to its remote
Update the target and rebase all applied branches
Push a branch or stack and create its reviews
View and modify forge authentications
Conflict Management
Resolve conflicts in commits
Enter resolution mode for a conflicted commit
Inspection
View your workspace state and changes
Show uncommitted changes, applied branches, and commits
Show committed files, IDs, authors, and timestamps
Show uncommitted changes and their file and hunk IDs
Show details for a commit or branch
Committing Changes
Create commits on your branches
Commit all uncommitted changes; create the branch if needed
Commit selected files or hunks from but diff
Operations Log
View and restore workspace history
Undo the last operation
Show operation history of workspace
Restore workspace to a specific snapshot
Helper Commands
Open GitButler and configure terminal integrations
Open the GUI to the current project
Create and manage aliases for commonly used commands
View and modify GitButler configuration settings