From git help rebase: -x <cmd>, --exec <cmd> ... This option can only be used with the --interactive option (see INTERACTIVE MODE below). It would be nicer to turn on interactive mode behind the scenes without launching an editor, like is already done for --preserve-merges.