0

I'm trying to retrieve a list when a git pull was made on a Ubuntu server eg.

  • 2017-11-03 14:00:00 revision
  • 2017-11-02 11:30:00 revision

Is this possible?

I tried git log but this shows me the commits and not the date when they were pulled.

  • Try `git log --pretty=format:"%h%x09%an%x09%ad%x09%s"`. Is this what you are expecting? –  Nov 06 '17 at 11:07
  • 1
    Probably you need to see the reflog as described [here](https://stackoverflow.com/a/17369548/2303202) – max630 Nov 06 '17 at 11:13
  • This may help, https://askubuntu.com/questions/391082/how-to-see-time-stamps-in-bash-history – ElpieKay Nov 06 '17 at 11:20

1 Answers1

0

You can use

git reflog --date=iso

It will give you information related to most of the logs. But sometimes if somebody has deleted ref logs then you will not have any information.

Raman Sharma
  • 1,940
  • 2
  • 11
  • 10