12

In Azure DevOps, is there an easy way to find the total number of commits by developer within a specific time period? Possibly with the number of lines added/removed as well? Based on 1 repo or multiple.

Similar to this image from GitHub...

enter image description here

Rob
  • 147
  • 1
  • 2
  • 11

3 Answers3

14

I think this is a general git question.

What we did in our peoject is similar to Git number of commits per author on all branches

You would go for something like:

git shortlog -s -n --all --no-merges --since="22 Aug 2019" --before="01 Sept 2019"

This would result in: enter image description here

you could also add the author by adding --author=name like: enter image description here

I would suggest to read the docs for options.

Daniel
  • 9,491
  • 12
  • 50
  • 66
8

You could check out the marketplace. A possible extension would be Contributions Graph, which also allows you to select one or more repositories.

Contributions of a user

Alex AIT
  • 17,361
  • 3
  • 36
  • 73
1

If you use VisualStudio, a quick way to achieve the number of commits is to copy and paste the changeset history into excel and filter by user. It's not something I'd want to use regularly but it works.

It's worth mentioning though, that lines of code committed can be misleading and therefore unfair to the coders. Good code can be a lot shorter than bad code. And lots of code might just contain external libraries etc.

mmarlow
  • 246
  • 3
  • 11