title: Reset other branch to current without a checkout
body: <p>I'm writing some scripts for my Git workflow.</p>
  
  <p>I need to reset other (existing) branch to the current one, without checkout.</p>
  
  <p>Before:</p>
  
  <pre><code> CurrentBranch: commit A
   OtherBranch: commit B
  </code></pre>
  
  <p>After:</p>
  
  <pre><code> CurrentBranch: commit A
   OtherBranch: commit A
  </code></pre>
  
  <p>Equivalent of</p>
  
  <pre><code> $ git checkout otherbranch 
   $ git reset --soft currentbranch
   $ git checkout currentbranch
  </code></pre>
  
  <p>(Note <code>--soft</code>: I do not want to affect working tree.)</p>
  
  <p>Is this possible?</p>