小编Ada*_*g84的帖子

如何设置 git 的提交和作者日期

使用 github 今天是 12/1/2012,但我需要它看起来像我在 2 天前提交/创作了 git 提交(2012 年 11 月 29 日,一天中的任何时间)(最后一次提交/同步是 11/27/ 2012)。(从那时起就没有其他 git 了,我是唯一一个使用这个特定 git 存储库的人。我正在使用 Github 及其命令行 shell。

我知道这与 GIT_COMMITER_DATE 和 GIT_AUTHOR_DATE 有关

但是我不太熟悉手动 git 命令来做这样的事情

谢谢!

对于本杰明,我尝试了 setenv,但 setenv 不是有效的命令?我正在使用 github git 命令行

setenv GIT_COMMITER_DATE="11/28/2013 12:30"

Error:
setenv : The term 'setenv' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct …
Run Code Online (Sandbox Code Playgroud)

git github

3
推荐指数
1
解决办法
3269
查看次数

标签 统计

git ×1

github ×1