linux - How to automatically edit commits after "git-rebase -i"? -
very need change date of n previous commits. git rebase -i @~20
, in editor manually change pick
edit
, after run in loop commit --amend
desired date. works nicely, automate process editor not called @ all.
the question is: how switch "edit mode" automatically after git rebase
?
you can write script behave editor , want(it called temporary file , should modify it), run rebase - editor=/path/to/your/script git rebase -i @~20
also might want onto git filter-branch
approach suggested in how can 1 change timestamp of old commit in git?
Comments
Post a Comment