title: Git https:// repository not found though it exists
body: <p>I have a private repo on github. It's location was changed.</p>
  
  <p>I tried changing the remote but I wasn't able to push anymore.</p>
  
  <pre><code>ls-remote https://github.com/xxxxx/xxxxx.git
  </code></pre>
  
  <p>gave me this</p>
  
  <p>remote: Repository not found.<br>
  fatal: repository '<a href="https://github.com/xxxxx/xxxxx.git/" rel="noreferrer">https://github.com/xxxxx/xxxxx.git/</a>' not found</p>
  
  <ul>
  <li>I checked the spelling and it was correct.</li>
  <li>I was able to open the url in the browser </li>
  <li>I have sufficient rights on the repo.</li>
  <li>I could clone every other repo by https</li>
  <li>I removed origin with<br>
  git remove origin <a href="https://github.com/xxxx/xxxxx.git" rel="noreferrer">https://github.com/xxxx/xxxxx.git</a></li>
  <li>re-added it with<br>
  git add origin <a href="https://github.com/xxxxx/xxxxx.git" rel="noreferrer">https://github.com/xxxxx/xxxxx.git</a> </li>
  <li>I did a<br>
  git remote set-url origin <a href="https://github.com/xxxxx/xxxxx.git" rel="noreferrer">https://github.com/xxxxx/xxxxx.git</a></li>
  </ul>
  
  <p>I upgraded git from 1.9.5 to 2.2.1 to see if it would help</p>
  
  <p>After the upgrade I did a new ls-remote on the repository and it asked to accept a new certificate. I did.</p>
  
  <p>This didn't remove the problem</p>
  
  <p>Doing a ls-remote on the <strong>SSH URL</strong> url though works perfectly
  So I fixed the problem by adding the SSH URL as remote origin</p>
  
  <p>Why the https:// url is <em>Not found</em> keeps me puzzled.
  Anyone has any idea?</p>