title: Rebasing local Git branch before push to remote
body: <p>Remotes: <strong>origin</strong></p>
  
  <pre><code>$ git branch
  * master
  
  $ git checkout -b "new_feature"
  </code></pre>
  
  <p>Now I do couple of commits on "new_feature" branch and want to push it to <strong>origin</strong> after updating it.</p>
  
  <pre><code>$ git branch
  master
  * new _feature
  
  $ git pull --rebase origin new_feature    
  $ git push origin new_feature
  </code></pre>
  
  <p>Is this the correct way to update the local branch before pushing to remote?</p>