title: Git: Finding the two nearest commits of two repositories?
body: <p>I have a collection of repositories that were derived from one another. Instead of creating a new branch for each major revision, a new repo B was created with the last state of the old one A.</p>
  
  <p>I'm trying to bring these poor things back together, but to do so I need to find out which commit in A was the initial commit of B taken from.</p>
  
  <p>How can I do that?</p>
  
  <p>Edit: note that there is no certainty that B's initial commit contains identical source to one of A's commits. For example, a Makefile or something may have been changed to accomodate the new name of the project.</p>