title: How to move all commits from a branch to another?
body: <p>The scenario is this:</p>
  
  <pre><code>X1--X2--X3--X4--X5--X6 (master)
               \
                D1--D2--D3 (dev)
                         \
                          B1--B2--B3 (bug1)
  </code></pre>
  
  <p>I want to move all commits from <em>bug1</em> branch to master branch and get rid of bug1 branch. In this case:</p>
  
  <pre><code>X1--X2--X3--X4--X5--X6--B1--B2--B3 (master)
               \
                D1--D2--D3 (dev)
  </code></pre>
  
  <p>What's the best option to do this?</p>