1

Is it possible to get the date and time when my git repository was updated from the remote repo. Currently I use "repo sync" and "git pull --rebase" to update my local repository.

Thanks

xdazz
  • 158,678
  • 38
  • 247
  • 274
Vineel Kumar Reddy
  • 4,588
  • 9
  • 33
  • 37

1 Answers1

0

Try

git rev-list --format=format:'%ai' --max-count=1 `git rev-parse HEAD`

From https://gist.github.com/bitrut/1494315

Intermernet
  • 18,604
  • 4
  • 49
  • 61