title: Does git pull affect remote tracking branch?
body: <p>As we know git pull = git fetch + git merge.  But my understanding with git merge is it only affects the branch that you are merging into, not the branch you are merging from.</p>
  
  <p>So in the case of git pull, I imagine it looks like this:</p>
  
  <pre><code>git fetch origin
  git merge origin/master
  </code></pre>
  
  <p>If that's the case, new changes from origin will be replayed on master, but origin/master will not have the changes committed to local master branch. Does git pull make sure remote tracking branch (origin/master) contain all the new changes made in master after git merge or is that done when you do git push?</p>