title: what is the best way to change a Git repo's origin?
body: <p>I cloned a read-only Git repo from GitHub onto my server.  The next day, I forked that repo on GitHub.  What are the steps to update the remotes on my repository and make sure everything on the server is up-to-date?</p>
  
  <p>Is this the way to start?  Is there anything else I need to to so that the clone will treat the new origin as if I had originally cloned from it?</p>
  
  <pre><code>git remote rename origin upstream
  git remote add origin git@github.com:user/fork.git
  </code></pre>