Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

github commit information: A commited with B

Tags:

github

Can anyone explain why a commit in GitHub would display the following information : 'Contributor-A' committed with 'Contributor-B' on 15 Feb.

Does it mean that 'Contributor-A' is the author (who does not have the push access to the master) and 'Contributor-B' is the committer/maintainer?

Then why isn't there a PR created for merging this commit? Or does it mean that there was a closed PR about this commit, but the maintainer did not merge it via web interface but performed rebase or cherry-picking to include it?

Many thanks!

like image 480
Xiaoyuan Xie Avatar asked Apr 28 '16 08:04

Xiaoyuan Xie


People also ask

What does a commit do in GitHub?

Similar to saving a file that's been edited, a commit records changes to one or more files in your branch. Git assigns each commit a unique ID, called a SHA or hash, that identifies: The specific changes. When the changes were made.

What is GitHub commit number?

The long string following the word commit is called the commit hash. It's unique identifier generated by Git. Every commit has one, and I'll show you what they're used for shortly. Note: The “commit hash” is sometimes called a Git commit “reference” or “SHA”.

How do I see recent commits in GitHub?

On GitHub, you can see the commit history of a repository by: Navigating directly to the commits page of a repository. Clicking on a file, then clicking History, to get to the commit history for a specific file.


1 Answers

...maintainer did not merge it via web interface but performed rebase or cherry-picking to include it?

I was able to get this by cherry-picking a commit from another branch and directly pushing to the current branch - an example on GitHub.

A Pull Request is not required to push code between branches. A Pull Request is a method that allows developers to collaborate on changes prior to merging between branches.

like image 95
osowskit Avatar answered Oct 04 '22 00:10

osowskit