title: Git branch has diverged after rebase, so why rebase?
body: <p>Recently I came across the notification that my branch has diverged. That was when I made a feature branch, pushed it to remote, and did a rebase with master a few days later when I started working on it again.</p>
  
  <pre><code>git checkout -b feature-branch
  git push origin feature-branch:feature-branch
  </code></pre>
  
  <p>...and when in master...</p>
  
  <pre><code>git pull origin master
  git checkout feature-branch
  git rebase master
  </code></pre>
  
  <p>But when I want to push my branch again, it says:</p>
  
  <pre><code>On branch feature-branch
  Your branch and 'origin/feature-branch' have diverged,
  and have 67 and 1 different commit each, respectively.
  </code></pre>
  
  <p>I found this answer in "<a href="https://stackoverflow.com/questions/19016698/git-branch-diverged-after-rebase">Git branch diverged after rebase</a>":</p>
  
  <blockquote>
    <p>Since you'd already pushed the branch, you should have merged in the
    source branch, rather than rebasing against it.</p>
  </blockquote>
  
  <p><strong>Question</strong></p>
  
  <p>After reading <a href="https://www.atlassian.com/git/tutorials/merging-vs-rebasing/conceptual-overview" rel="noreferrer">this</a> I still don't fully understand what I should've done differently in my flow, and why I still want to be using git rebase. Hope someone can explain this, thanks!</p>