What tool should I use to split git commit into multiple ones?

For IntelliJ I use this workflow:

  • Open the git log window or Alt + 9
  • Right click on commit you want to split → Interactively Rebase from Here
  • Right click on commit you want to split → Stop to edit or Alt + E
  • Start Rebasing
  • Right click to the current commit in the git log with the yellow label 🏷️!Undo commit… alternatively execute git reset HEAD~1 in the terminal
  • Ctrl + K to select and commit your changes with the according message. Repeat as often as necessary until all changes are committed.
  • On the bottom right click: Rebase Stopped for Editing → Continue

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)