GuidesCLI Tutorial
Editing Commits
Editing commit messages and edit mode with GitButler.
While you can rub changes in and out of commits, you can also edit the commit message of any commit in your workspace quite easily.
Editing Commit Messages
You can edit commit messages with the but describe command. So if we have this status:
$ but status
╭┄00 [Unassigned Changes] ┊ ┊╭┄nd [user-bookmarks] ┊● 464aae4 add user changes ┊● ca81308 create bookmarks ├╯ ┊ ● 204e309 (common base) [origin/main] Merge pull request #10 from schacon/sc-description
Then you can edit the message of any commit by running but describe <sha>, which will open up your editor of choice with the existing commit message and when you exit the editor, replace that message in the commit and rebase everything above it.
The editor would look something like this:
Pretty simple.
Last updated on