2

I want to see the last activity on my Gitosis server, because we have a new service (Gitorious) and we think that Gitosis has been forgotten by the users. I can use this to see the numbers of commits:

cd /path/to/repos/ && ls | xargs -I % git --git-dir=% rev-list --all 2>/dev/null | wc -l

but this only shows the number, not the date.

Rory O'Kane
  • 29,210
  • 11
  • 96
  • 131
vretamal
  • 1,485
  • 1
  • 10
  • 14

1 Answers1

1

Use the --pretty option, eg.

git show --pretty='format:%h %ai'

See git-show for more information on "pretty" formats.

T Percival
  • 8,526
  • 3
  • 43
  • 43