David C David C -4 years ago 159
Git Question

How to get Git Stats from VSTS

We use VSTS and are looking for some stats around amount and size of git commits, by author. How can I obtain this from our VSTS Git repositories?

The only one I've found so far is Git Stats, which involves pulling all repo's locally etc, so doesn't sound as sustainable.

Given that VSTS seems to expose some of this info, on project Activity pane, I was hopeful it'd be available somehow/somewhere.

VSTS Activity info pane

One of the drivers behind this is to identify those who store up really large commits.

Thanks.

Answer Source

There isn’t the built-in feature of Git stats for VSTS Git repository.

You can build an extension (e.g. dashboard widget) with your own logical per to detail requirement to analysis the data from Git Rest API.

There is the article about step by step to create a dashboard widget: Add a dashboard widget.

To get related data of commits, you can use this API in your extension: GitHttpClient2_2

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download