GitButler CLI Cheat Sheet
Essential commands for working with GitButler
GitButler is a Git client that allows you to work on multiple branches simultaneously. This cheat sheet features the most important and commonly used GitButler CLI commands for easy reference.
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 all branches with unpushed commits
Pull latest upstream and integrate all active branches
Create/update pull requests for active branches
View and modify forge authentications
Conflict Management
Resolve conflicts and manage merges
Go into resolution mode
Inspection
View your workspace state and changes
Show workspace state, applied branches, staged files, and commits
Show status with committed files listed and more verbose output
Show changes in working directory compared to last commit
Show details of a specific commit or branch
Committing Changes
Create commits on your branches
Commit all changes to current branch with a message
Stage specific file(s) for the next commit
Commit only changes already staged to the branch
Operations Log
View and restore workspace history
Undo the last operation
Show operation history of workspace
Restore workspace to a specific snapshot
Helper Commands
Other miscellaneous commands including automatic file assignment or committing
Open the GUI to the current project
Create and manage aliases for commonly used commands
View and modify GitButler configuration settings