git - 在 rebase git branch 时更改时间戳

标签 git git-rebase

我在一个分支中重新组织了提交,然后才将其公开,导致提交的时间戳顺序困惑。我宁愿他们都在今天,中间只有几秒钟。

显然这些时间戳也不会是正确的,但由于这是事情公开的时间,我更喜欢在时间方面混淆历史。

那么我如何告诉 git 在 rebase 时创建新的时间戳?

最佳答案

使用--ignore-date :

git rebase --ignore-date

关于git - 在 rebase git branch 时更改时间戳,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1579643/

相关文章:

git - .gitignore 和 web.release.config

python - 相当于git remote show origin的管道(从Python使用)

Git 不提交阶段性更改

git - 从命令行可以,但是钩子(Hook)(git)

git rebase 结果

git - 我如何 `git rebase -i` 并防止 "You asked to amend the most recent commit, but doing so would make it empty."?

git - git如何维护已删除分支的提交?

git - 检测 git rebase 上的冲突

Git rebase : finding the "next" commit to be rebased?

git - 来自master分支的分支的 'rebase master'和 'rebase --onto master'之间的区别