Search code examples
gitbashrepositoryreinstall

GitHub: Can't find remote repository after re-installation


I've re-installed the git bash. And when I tried to clone from one of my private repository, I was told that

remote: Repository not found.
fatal: repository 'https://github.com/<MY REPO ADDRESS>/' not found

I've checked that my username and email were all correct using the command

git config user.name
git config user.email

Why couldn't git find the repository? Is it because I forgot to configure something else?

Here is a snapshot of the command line: enter image description here


Solution

  • The user.name and user.email have nothing to do with https authentication.
    The former is for commits, the latter uses the GitHub username and password.

    Since I don't see a debugging.git repo in your repo page, it could be a private repo (in which case double-check the username and password you should have to enter when cloning it).
    Or it does not exist (in which case, create it on GitHub first)