title: git push shows wrong username
body: <p>I've looked up many posts on this but nothing helped.</p>
  
  <p>There's a remote repo something like : <code>https://github.com/cakes/blue.git</code></p>
  
  <p>The global <code>gitconfig</code> is:</p>
  
  <pre><code>$ cat ~/.gitconfig
  [user]
          name = blake.shaw
  [http]
          sslCaInfo = C:/bin/certificate.crt
  </code></pre>
  
  <p>This requires a certificate and hence put it as <code>http.sslCaInfo</code> and the certificate has been added to the git bin folder as well.</p>
  
  <p>After cloning, the remote origin url was set to something like : <code>git@github.com:cakes/blue.git</code></p>
  
  <p>The id_rsa and id_rsa.pub are also created. The id_rsa.pub has been added to the ssh keys in github(remote).</p>
  
  <p>When I try to do a <code>git push origin master</code>, it throws an error:</p>
  
  <pre><code>ERROR: Permission to cakes/blue.git denied to blake-shaw
  fatal: Could not read from remote repository.
  
  Please make sure you have the correct access rights
  and the repository exists.
  </code></pre>
  
  <p>There are two issues:</p>
  
  <ol>
  <li><p>The username in the url says <code>blake-shaw</code> instead of <code>blake.shaw</code>. How to reset it?</p></li>
  <li><p>Tried using the url as : <code>https://github.com/cakes/blue.git</code> and using source tree, tried to push but then it throws the below error:</p>
  
  <pre><code>remote: Permission to cakes/blue.git denied to blake.shaw.
  fatal: unable to access 'https://github.com/cakes/blue.git/': The requested URL returned error: 403
  </code></pre></li>
  </ol>