Skip to content

Confused by user info, timestamps, and urls in Commit objects #24391

Discussion options

You must be logged in to vote
penyuan:

What is the difference between author and committer in the API response? Do their meanings differ in Git vs GitHub? For example, the second commit’s page shows that " Alhadis authored and pchaigno committed on Apr 29, 2017". What real-life scenarios would lead to this? As a beginner Git user I’ve never encountered anything like this.

GitHub uses the metadata created by Git in a commit to present the respective author and committer information for a commit.

When using Git on the command line, it’s possible to specify an author of the commit who is not the committer themselves. This practice was common before pull requests and Git-hosting providers existed, where a contributo…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment