问题 So, I have a very simple use case; I want to squash all the commits that need to go back into master from my 'todays working' branch. Until now I've been using git rebase -i for this, but it doesn't work quite right; the timestamp on the final commit isn't right. Here's an example of doing this: [work1] git checkout master Switched to branch 'master' [work1] git rebase today First, rewinding head to replay your work on top of it... Fast-forwarded master to today. [work1] git log --pretty