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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -