title: Does rebasing a branch chnage the current branch or the branch which we rebased
body: <p>I was going through the documentation of git rebase and git merge. I understood the difference and rebasing almost, but i have one doubt. Does rebase effect the current branch or the rebased branch.</p>
  
  <p>For Example:</p>
  
  <p>I have a branch <code>new-branch</code> checked out from <code>master</code> and both <code>master</code> and <code>new-checkout</code> branch progressed, Now after pushing some commits in <code>new-branch</code>, I want to rebase it with origin master.</p>
  
  <p>I ran this command in <code>my-branch</code></p>
  
  <pre><code>git rebase master
  </code></pre>
  
  <p>I did the rebasing, I know that git will put some new commits of <code>my-branch</code> on the top of current <code>master</code> branch head.</p>
  
  <p>Now my question is that, if i will force push from the <code>my-branch</code>, then will it change the code of <code>my-branch</code> or it will change the remote <code>master</code> branch.</p>
  
  <p>Hope you understood my question, please let me know if anything is confusing in my question. Any help would be appreciated.</p>