【发布时间】:2019-04-10 12:37:08
【问题描述】:
您好,我想知道如何解决这个问题。 我希望能够查看我的帐户最后一次提交/推送我的 github 存储库是什么时候。
但问题是我已经在 20 到 24 小时前提出了这个问题。 现在 github 不会显示时间,它只显示“从现在起一天后的最新提交”。
有没有办法解决这个问题,比如“21 小时前提交”之类的东西?
【问题讨论】:
标签: github
您好,我想知道如何解决这个问题。 我希望能够查看我的帐户最后一次提交/推送我的 github 存储库是什么时候。
但问题是我已经在 20 到 24 小时前提出了这个问题。 现在 github 不会显示时间,它只显示“从现在起一天后的最新提交”。
有没有办法解决这个问题,比如“21 小时前提交”之类的东西?
【问题讨论】:
标签: github
你可以amend the date of your latest commit,然后强制推送。
GIT_COMMITTER_DATE="Mon 20 Aug 2018 20:19:19 BST" git commit --amend --no-edit --date "Mon 20 Aug 2018 20:19:19 BST"
git push ---force
警告:确保向该仓库的任何贡献者宣传强制推送:他们将不得不将其 master 分支重置为新的 origin/master。
另见“Update git commit author date when amending”
git commit --amend --date="$(date -R)" # or another date
再次,需要强制推动。
【讨论】: