Issue
I created a private repo on github and tried to set it up as my remote of a local git repository. However, when the remote is set to the default https address (https://github.com/...), using git push gives me error "Error: Repository not found". After googling around, I tried using (https://[email protected]/...), but that gave me "Failed to connect to gitHub.com port 443 : Connection Refused."
So finally I tried using the ssh method, which works, after setting up the ssh key and stuff. So what was I doing wrong with the https setup? I didn't have this kind of problem with public repos.
Solution
To expand on merlin2011's comment, check your git credential helper:
git config credential.helper
On Windows, for instance, it should be the Windows Credential Manager, which would cache your credentials.
Answered By - VonC