Linux – Check the history of git pulls created on the local repository from the remote branch

Check the history of git pulls created on the local repository from the remote branch… here is a solution to the problem.

Check the history of git pulls created on the local repository from the remote branch

Is there a way to view the history of pulls made on a local repository?

We use a shared system and want to record pull operations made by different users. I searched for this online and had no luck. Does anyone have an idea on this?

Solution

Record the pull : to the local repository

Every time you pull or merge a set of commits, Git does a merge commit. So this will work:

$ git log --merges

To find out which users have pulled : from the Github repository


$# Wait a minute, this is not possible.

However, if you host your repository

on one of your own servers, you can set up an http server with authentication that you can then use to log access, or with SSH access, you can configure SSHD to record which SSH key is used to access the user “git” (or any user to which your git repository belongs).

Maybe you mean pull requests?

If so, use the GitHub API to retrieve a list of open and closed pull requests: http://developer.github.com/v3/pulls/

Related Problems and Solutions