ERROR: Repository not found. Could not read from remote repository. github code example
Example: ERROR: Repository not found.
# Maybe your are trying to use more than one repo on the same server. I
# had to setup config to use both repos on the same server with different
# ssh keys. Here is what helped me.
# 1. Create a file for the configuration
mkdir ~/.ssh/config
# 2. Add list your configuration to the file with IdentityFile being the
# path to the ssh key file name.
Host github.com
HostName github.com
IdentityFile ~/.ssh/id_rsa
Host github.com-example2
HostName github.com
IdentityFile ~/.ssh/id_rsa_example2
# Cloning the first repo with the ssh key, id_rsa, looks like:
git clone [email protected]:User/Repo.git
# Cloning the other with the ssh key, id_rsa_example2, looks like:
git clone [email protected]:User/Repo.git