git - 提交到库中的日期 [英] git - date at which commits were pulled into repository

查看:128
本文介绍了git - 提交到库中的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从我的服务器日志中得知,错误首先在几天前的某个时间开始出现。

I know from my server logs that an error first starts appearing at a certain time many days ago.

要部署,我发出一个 git pull 在我的服务器上。
我想知道错误开始显示时提交的内容。

To deploy, I issue a git pull on my server. I want to find out what commits were pulled around the time the errors started to show up.

查看日志, < author date> < committer date> 均为所有存储库提供相同的日期(如您所期望的)到提交时提交给git(在开发存储库中),而不是当它出现在部署存储库中。

Looking at the logs, the <author date> and <committer date> both give the same date across all repositories (as you'd expect), and they relate to when the commit was committed to git (in the development repository), not when it appeared in the deployment repository.

任何想法,如果有可能从这个信息梳理出来git?

Any idea if it's possible to tease out this info from git?

推荐答案

试试这个:

Try this:

git reflog show master@{2.weeks.ago}

这篇关于git - 提交到库中的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆