You can commit into your branch as usual at the schedule that you need. Then, before pushing to the origin, you can do an interactive rebase:
git rebase -i <first commit hash>
For example, git rebase -i HEAD~10
.
This will open a text editor (Vim probably), in which you can select the commits and change the default pick
option with edit
/e
to edit the commits in which you want the date to be modified.
When you're finished, you can close the rebase editor, and then git will go commit by commit giving you the option to edit each one of them. For the first one, you can do:
git commit --amend --date "April 5th 2020 13:00"
And then git rebase --continue
to go to the next commit. And then the next, and then the next... until you finish.
After that, you can git push
to your branch at origin, or force push if you pushed before.
Of course, this is quite tedious, so you can also squash commits to reduce this work.