Evgenii Legotckoi
Aug. 7, 2018, 1:10 p.m.

Counting the number of commits for authors in Git

Just for fun.

What can programmers measure? Of course, with their commits, at least their number in the Git repository.

To do this, you can use the git shortlog command, which summarizes the output of git log, providing a more concise output.

Options

This command has several options, but we use only two of them

-n
--numbed

Sorting output in accordance with the number of commits on the author

-s
--summary

Suppress the description of the commit and provide only the summary counter.


Output of the number of commits

Execute command

  1. git shortlog -s -n

In my company, I got such an interesting conclusion (the names of other developers specially closed the icons ***)

  1. 3690 ***
  2. 3145 ***
  3. 2539 ***
  4. 2387 ***
  5. 1881 ***
  6. 1635 ***
  7. 1509 ***
  8. 1486 ***
  9. 912 ***
  10. 904 ***
  11. 746 ***
  12. 676 ***
  13. 675 ***
  14. 642 ***
  15. 637 ***
  16. 579 ***
  17. 559 ***
  18. 482 ***
  19. 469 ***
  20. 379 ***
  21. 344 ***
  22. 330 ***
  23. 320 ***
  24. 289 ***
  25. 267 ***
  26. 224 ***
  27. 218 LegotckoiE
  28. 193 ***
  29. 188 ***
  30. 181 ***
  31. 179 ***
  32. 176 ***
  33. 161 ***
  34. 155 ***
  35. 150 ***
  36. 146 ***
  37. 140 ***
  38. 139 ***
  39. 134 ***
  40. 129 ***
  41. 129 ***
  42. 125 ***
  43. 123 ***
  44. 120 ***
  45. 107 ***
  46. 104 ***
  47. 101 ***
  48. 100 ***
  49.  
  50. и т.д.

And in what place are you?

Recommended articles on this topic

By article asked0question(s)

1

Comments

Only authorized users can post comments.
Please, Log in or Sign up
  • Last comments
  • Evgenii Legotckoi
    March 9, 2025, 9:02 p.m.
    К сожалению, я этого подсказать не могу, поскольку у меня нет необходимости в обходе блокировок и т.д. Поэтому я и не задавался решением этой проблемы. Ну выглядит так, что вам действитель…
  • VP
    March 9, 2025, 4:14 p.m.
    Здравствуйте! Я устанавливал Qt6 из исходников а также Qt Creator по отдельности. Все компоненты, связанные с разработкой для Android, установлены. Кроме одного... Когда пытаюсь скомпилиров…
  • ИМ
    Nov. 22, 2024, 9:51 p.m.
    Добрый вечер Евгений! Я сделал себе авторизацию аналогичную вашей, все работает, кроме возврата к предидущей странице. Редеректит всегда на главную, хотя в логах сервера вижу запросы на правильн…
  • Evgenii Legotckoi
    Oct. 31, 2024, 11:37 p.m.
    Добрый день. Да, можно. Либо через такие же плагины, либо с постобработкой через python библиотеку Beautiful Soup
  • A
    Oct. 19, 2024, 5:19 p.m.
    Подскажите как это запустить? Я не шарю в программировании и кодинге. Скачал и установаил Qt, но куча ошибок выдается и не запустить. А очень надо fb3 переконвертировать в html