GitButler ⧓

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:

but status

Then pass the new message:

but reword nn -m "Add user bookmarks"

Omit -m when you want to edit the existing message in your configured editor:

but reword nn

Use --fix-formatting to wrap the existing message to 72 characters without opening an editor:

but reword nn --fix-formatting

Rename a branch

Pass the branch name or CLI ID as the target:

but reword user-bookmarks -m feature/user-bookmarks

Run but status to see the new branch name.

Last updated on

On this page

Edit on GitHubGive us feedback