title: Git: pulling from forked repo and pushing to my fork
body: <p>I have forked a git repo (call it upstream) and I have a forked copy of it on my github (call it origin) , and I have a local copy of the fork on my machine. I want to keep my fork up to date with the original repo.</p>
  
  <p>The project has several branches, and I might be working on any of them in a given day. I check out my local copy of branch, and I want to update it with the latest changes from upstream/branch, and then push those changes to origin/branch so that everything is up to date. </p>
  
  <p>Is there a way to set a branch to pull from remote but push to origin? I can do it now by manually setting the tracked branch to upstream/branch, doing git pull, then manually setting the tracked branch to origin/branch and doing git push. This works, but it seems very clumsy. Is there a cleaner way to do this?</p>