git clone
gives the message fatal: repository \'url\' not found
I tried the options in the link, but it didn\'t work.
open Credential Manager -> look for your GIT devops profile -> click on it -> edit -> add user and password generated in DevOps and save.
if your git repo is private, try this
git clone https://<USERNAME>:<PASSWORD>@github.com/<USERNAME>/<REPO_NAME>.git
else use this
git clone https://github.com/<USERNAME>/<REPO_NAME>.git
For me it worked by removing the credential.helper config and cloning the repository again
git config --global --unset credential.helper
git clone https://<repository>
You may need to create an empty file named git-daemon-export-ok
within the repository directory.
git clone https://username@github.com/User/Repository.git
will prompt for a password then clone.
This issue started surfacing on my terminal after I enabled GitHub 2FA.
Now, I face this issue whenever I clone a private repository. This error:
remote: Repository not found.
fatal: repository 'https://github.com/kmario23/repo-name.git/' not found
is so awkward. Of course, I have this repo and I'm the owner of it.
Anyway, it seems the fix is now that we have to enter the GitHub username
one more time when cloning a private repo. Below is an example:
add your username
|-------|
$ git clone --recursive https://kmario23@github.com/kmario23/repo-name.git