New GitComet Pro is out now

GitComet in action · 38 seconds

Rewrite History, Cleanly

Clean up a branch with GitComet’s interactive rebase editor. Fold fixup commits into their targets, reorder the remaining commits and replace an unclear commit message before completing the rebase.

Playing loads the video from YouTube (Google).

Follow along

Steps shown in the video

Recorded on Linux. The shortcuts below match the recording.

  1. Open an interactive rebase for the feature branch from the commit actions menu.
  2. Use autosquash to fold fixup commits into the commits they amend. Review the resulting sequence in the editor.
  3. Drag commits into the order you want them to appear in the branch history.
  4. Choose Reword for the vague commit message and continue the rebase. Enter a descriptive message when prompted and save it.
  5. Review the completed branch history to confirm that the commits are ordered and named as intended.