6

I have a task like, to get all the user commits from Bitbucket.

Can someone assist to get the all list of users mailId or name using git command?
From that list I can get full commit details of each.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Geetha
  • 99
  • 1
  • 2
  • 3

2 Answers2

10

If you can clone that repository from BitBucket to your workstation, you can then list all the user emails:

git shortlog --summary --numbered --email

For each one, you can then list all their commits.

git log --author="username"
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
-2

$ git clone git@gitlab.xxx.com:applicaiton/app.git #clone from Bitbucket repository

$ cd app # app is your local code dir

$ git log -3 #list the latest 3 commit logs, and use grep commond to filter