Rudy’s OBTF Rudolf Adamkovič

Home / Emacs / Magit / Tips


How to modify or split existing commits

  1. Open magit-status.
  2. Move the point to the commit.
  3. Type r to rebase and m to modify the commit.
  4. Type x to reset.
  5. Type head~ or head~1 to reset to 1 commit older than head.
  6. Make commits, accessing the previous commit messages with M-p.
  7. Type r to rebase and r to continue (finish) it.

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.