title: Changing the Git remote 'push to' default
body: <p>I want to change the Git default remote branch destination so I could just</p>
  
  <pre><code>git push
  </code></pre>
  
  <p>Instead of:</p>
  
  <pre><code>git push upstream
  </code></pre>
  
  <p>Currently this is set to the origin remote and I want to set it to a different remote.</p>
  
  <p>I tried to remove the original (cloned from) remote</p>
  
  <pre><code>git remote rm origin
  </code></pre>
  
  <p>Which did remove the original remote. But doesn't solve the <code>git push</code> problem. I still get:</p>
  
  <blockquote>
    <p>fatal: No configured push destination. Either specify the URL from the<br>
    command-line or configure a remote repository using...</p>
  </blockquote>
  
  <p>I also tried to play with:</p>
  
  <pre><code>git remote set-url --push myfork origin
  </code></pre>
  
  <p>and other options but none seem to work (maybe because I deleted the origin remote too soon?)</p>
  
  <p>Following the <a href="https://stackoverflow.com/questions/820178/git-push-only-to-a-remote-branch">answer here</a> I tried to change:</p>
  
  <pre><code>git config push.default upstream (or matching)
  </code></pre>
  
  <p>but neither worked.</p>