title: Setting git remote fetch and push url in a single command
body: <p>The command</p>
  
  <p><code>$ git remote set-url origin git@bitbucket.org:myorg/myrepo.git</code></p>
  
  <p>will only set the <code>fetch</code> URL, not the <code>push</code> URL:</p>
  
  <pre><code>$ git push origin
  remote: Too many invalid password attempts. Try logging in through the website with your password.
  fatal: unable to access 'https://bitbucket.org/myorg/myrepo.git/': The requested URL returned error: 403
  $ git remote -v
  origin  git@bitbucket.org:myorg/myrepo.git (fetch)
  origin  https://bitbucket.org/myorg/myrepo.git (push)
  </code></pre>
  
  <p>I have to set the <code>push</code> URL separately</p>
  
  <pre><code>$ git remote set-url --push origin git@bitbucket.org:myorg/myrepo.git
  </code></pre>
  
  <h2>Question</h2>
  
  <p>I recall having been able to set both <code>push</code> and <code>fetch</code> URL in a single command. </p>
  
  <ol>
  <li>Was there a change in <code>git</code> so that <code>git remote set-url</code> will only change the <code>fetch</code> URL by default?</li>
  <li>Is there a way to set both URL in a single command?</li>
  </ol>