GuidesCLI Tutorial
Edit commit messages and branch names
Reword commits and rename branches with the GitButler CLI.
Use but reword to change a commit message or branch name. When you reword a commit, GitButler rewrites it and rebases dependent work above it.
Change a commit message
Find the commit ID:
Then pass the new message:
Omit -m when you want to edit the existing message in your configured editor:
Use --fix-formatting to wrap the existing message to 72 characters without opening an editor:
Rename a branch
Pass the branch name or CLI ID as the target:
Run but status to see the new branch name.
Last updated on