title: How to commit changes to another pre-existent branch
body: <p>I just made changes to a branch. How can I commit the changes to the other branch?</p>
  
  <p>I am trying to use:</p>
  
  <pre><code>git checkout "the commmit to the changed branch" -b "the other branch"
  </code></pre>
  
  <p>However, I don't think this is the right thing to do, because in this case I'm creating a new branch instead of committing the changes to "the other branch".</p>
  
  <p>Should I use the following command instead?</p>
  
  <pre><code>git merge "the other branch"
  </code></pre>