Very often I need to change the date of n previous commits. Usually I do git rebase -i @~20
and then in the editor manually change pick
to edit
, after that run in the loop commit --amend
with desired date. It all works nicely, but I would like to automate the process so that the editor would not be called at all.
The question is: how do I switch to "edit mode" automatically after git rebase
?