【问题标题】:How to make fake git commit date? [duplicate]如何制作假的 git 提交日期? [复制]
【发布时间】:2018-02-21 09:14:51
【问题描述】:

我想改变我的历史。

是否可以更改提交日期或使用过期日期进行新的提交?

我只考虑更改系统日期。

【问题讨论】:

标签: git commit


【解决方案1】:

提交时使用--date 选项:

git commit --date "Wed Feb 16 14:00 2037 +0100"

以下是支持的日期格式:

https://git-scm.com/docs/git-commit#_date_formats

【讨论】:

    猜你喜欢
    • 2014-02-02
    • 2013-12-17
    • 2019-12-26
    • 2011-04-18
    • 2012-02-08
    • 1970-01-01
    • 2021-08-14
    • 2012-02-24
    • 2021-11-25
    相关资源
    最近更新 更多