EoghanM
EoghanM

Reputation: 26914

git - date at which commits were pulled into repository

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

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.

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.

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

Upvotes: 3

Views: 194

Answers (2)

Karl Bielefeldt
Karl Bielefeldt

Reputation: 48998

Try this:

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

Upvotes: 1

manojlds
manojlds

Reputation: 301037

I too want to know a good answer for this, but one thing I can suggest is, get the hash of a commit, go to .git/objects/xx/remaininghash and see the date at which it was created?

I am not directly answering your question, but you can also use git bisect to narrow down which commit caused the problem.

Upvotes: 1

Related Questions