1

As the title, I want to get all contributors' user.name from windows command line using git command.

There are many similar solutions like List all developers on project in git

However, the user name listed is not actually user.name, it's in the format as FirstName, LastName.

enter image description here

As the picture, what I want is "yyx990803" but not "Evan You".
Thanks for your help in advance.

Eugene
  • 10,627
  • 5
  • 49
  • 67
  • 1
    Please distinguish between Git and GitHub. They are not the same thing. What those commands are showing _is_ `user.name` as it existed for that user at the time they made that commit. If you want to extract the GitHub username from the Git revision history, you're out of luck: it isn't there, for the simple reason that a Git repo can exist independent of GitHub. See also: https://stackoverflow.com/questions/34600040/get-github-username-from-commit-history – Thomas Jan 17 '18 at 08:27
  • @Thomas Thanks for the reminder. Let me clarify whether I understand you correctly. The name "yyx990803" is only GitHub thing but not Git. The only user name in Git can be shown by method mentioned in below url https://stackoverflow.com/questions/9597410/list-all-developers-on-project-in-git ? – Eugene Jan 17 '18 at 08:31
  • Yes, exactly :) – Thomas Jan 17 '18 at 08:31
  • @Thomas Thanks for the clarification. ^_^ – Eugene Jan 17 '18 at 08:35
  • If you want the GitHub user names, you can look into the GitHub APIs. – LinFelix Jan 17 '18 at 19:36

0 Answers0