Check who pushed a Git commit

short: Is there any way to view who has pushed a commit to a git repository?

long: git log shows me who created the commits, when and what are the commit comments. So I can know an original author of a commit. If such commit was pushed to a feature branch by the original author, I’d like to check who merged this commit to the production branch.

  • How to set git commit --author properly from rake running under LocalSystem account?
  • Extract authorship information from git repository
  • How is “author” determined for a git commit when rebasing and squashing?
  • How to get authors of changes between 2 commits?
  • How do I change the default author for accessing a local SVN repository?
  • tortoise svn shows useid, how can I change displayed name for author
  • git add files to an orphan branch without parent directory
  • Unable to add Git repository hosted on OS X Server
  • Revert to before a merged branch
  • What does the --stdlayout do in git svn clone?
  • Restoring a specific file from a commit
  • Equivalent of a git pre-merge hook?
  • 2 Solutions collect form web for “Check who pushed a Git commit”

    No, you would need an extra layer added to Git in order to record that kind of operation.
    git log only display the committer and author, as recorded in the commit.
    But that has no bearing on who is actually pushing said commit.

    For instance, gitolite (an authorization layer) adds an audit trail mechanism, with logs.
    See its log file format.

    You can see who has merged the branch. When you make git log --all you see all branches. There you can see the merge commits.

    But the problem on Git is that you can define any author and email so you can’t be sure that its correct.

    If you need access control you need something like gitolite.

    Git Baby is a git and github fan, let's start git clone.