title: ahead by x commits behind by y commits after rebase in GitHub
body: <p>I recently merged last y commits into one through the following code</p>
  
  <p><strong><code>git rebase -i HEAD~y</code></strong>
  --> Then I squash all the y commits into (by editing the file)
  -->Then I did a reset to the Head using <strong><code>git reset --soft HEAD~y</code></strong>
  -->Then I commited everything by using <strong><code>git commit</code></strong></p>
  
  <p>Now my git hub shows I am ahead by 1 commit and behind by y commits (in github windows). </p>
  
  <p>Now <code>git pull</code> -> gets all the current commits from the master and include this new merged commit once again. Now I am ended up having y+1 commits. Can anyone explain how can I push my recent merged commits.</p>
  
  <p>I am quiet amateur to GitHub. It would be also helpful if anyone can share the basic architecture of GitHub. All I can find is how to create a repository, etc.</p>
  
  <p>Thanks for your time </p>