Gaurav Sachan
Gaurav Sachan

Reputation: 320

Report of bitbucket and github pull and push

I need a report of all pull and push by all team members.

Upvotes: 2

Views: 484

Answers (2)

TUTU
TUTU

Reputation: 16

Try:

git log --author="username"  > log.log

Upvotes: -1

VonC
VonC

Reputation: 1327384

You could use GitHub webhook or Bitbucket webhook to listen (and trace) push events.

But:

  • there is no "clone/pull/fetch" events
  • you wouldn't be sure of who did the push anyway.

A better setup would be for the team to push to a "git repo proxy" (an intermediate repo that you control), in which:

  • you have gitolite set up (gitolite, a simple perl script, can log all git-related operations -- clone, fetch, pull, push, ... -- , and who did said operations)
  • you have a hook pushing automatically to GitHub/BitBucket (depending on the git repo proxy they are pushing to)

You can then extract the report from the gitolite logs from the server hosting those intermediate "git repos proxy" (proxy to GitHub, or proxy to Bitbucket).

Upvotes: 2

Related Questions