title: Which branch to select for rebasing
body: <p>I've two simple branches named master and admin. History is shown below.</p>
  <p><img src="https://i.imgur.com/wSAuL.png" alt="History" /></p>
  <p>I simply want to take admin branch's updates to master without merge commits. Then I have two options. Which of the following should I need to follow?</p>
  <p>1.Checkout to admin and <code>git rebase master</code> and fast-forward merge admin into master</p>
  <p>2.Checkout to master and <code>git rebase admin</code></p>
  <h2>EDIT:</h2>
  <p>I found some other findings too (that may be a reason to choose a solution)</p>
  <ol>
  <li>With option 1 it will remain master commits' SHA1 IDS without changing and change admin's SHA IDS</li>
  <li>With option 2 it will do the opposite of above</li>
  </ol>
  <p>So I think this is the main reason why we need to choose option 1, since we should not change the master's commits.</p>