title: git rebase from master to remote branch.!
body: <p>I already googled, and read many document.
  but Unfortunately I cannot understand them all</p>
  
  <p>My situation is. </p>
  
  <pre><code>git branch -r
  origin/HEAD -&gt; origin/master
  origin/master
  origin/team/myteam
  
  git branch -a
  master
  team/myteam
  remotes/origin/HEAD -&gt; origin/master
  remotes/origin/master
  remotes/origin/team/myteam
  </code></pre>
  
  <p>and Now I like to merge every patches from master to remote <code>mybranch</code>.</p>
  
  <p>I tried </p>
  
  <blockquote>
    <p>git checkout team/myteam</p>
    
    <p>git rebase master</p>
  </blockquote>
  
  <pre><code>git status
  On branch team/myteam 
  Your branch and 'origin/team/myteam' have diverged,
  and have 238 and 18 diffrent commits each, respectively.
  nothing to commit, working directory clean
  </code></pre>
  
  <p>it seems works.. but <code>push</code> returns error..</p>
  
  <p>I use gerrit. </p>
  
  <pre><code>git push origin HEAD:refs/for/team/mybranch  
  ...
  ..
  remote: Resolving
  deltas: 100% (14481/14481) remote: Processing changes: refs: 1, done
  To ssh://156.xxx.xxx.xxx/xxx  ! [remote rejected] HEAD -&gt; refs/for/team/myteam (change 228 closed) 
  error: failed to push some refs to 'ssh://156.xxx.xxx.xxx/xxx
  </code></pre>