title: What am I doing wrong when I try to rebase in Git?
body: <p>I recently started at a new company where the team chooses to rebase new changes onto the develop branch rather than merging changes into it. I thought I understood how this works but I run into issues so often that I'm no longer sure I understand and can't figure out what I'm doing wrong.</p>
  
  <p>Typical scenario:</p>
  
  <ul>
  <li>I make a branch for my feature off if "develop".</li>
  <li>I commit changes to my feature branch. When it's time to merge into develop I've made 3 commits on my branch, and there have been 5 commits on Develop
  
  <ul>
  <li>I right click "Develop" in source tree and select the option to rebase my changes onto it.</li>
  <li>there are no conflicts. The git diagram looks correct as expected except my branch says I'm 5 ahead and 3 behind now (the numbers from above), which obviously prevents me from pushing.</li>
  </ul></li>
  </ul>
  
  <p>I don't understand what I'm doing wrong and every explanation I've read about how got rebase works doesn't seem to indicate that I am. The code on my side also looks correct and compiles.</p>