title: Does git rebase affect the remote branch or local branch
body: <p>I am working on my branch called "role". Remote master is being updated frequently. So after I commit my changes to remote branch, I need to rebase the branch on the latest master. So here are my steps:</p>
  
  <pre><code># from local
  git add .
  git commit 'Add feature'
  git push origin role
  
  # rebase
  git pull --rebase origin master
  </code></pre>
  
  <p>Does rebase affect only the local branch or remote branch or both? If only local branch is rebased, should I commit to origin again after the rebase?</p>