I'm using a few different git accounts for public and private repositories.
Not I'm trying to clone a private repository, but
git clone https://git.... .git
returns an error:
remote: Repository not found.
But my URL is good enough (with saved case). I've just copied this from github.
I expected to enter my git username and password for a user who has enough of permissions for this private repository.
I've tried also:
ssh -T git@github.com
This returns:
Hi <username_without_access_to_expected_repo>! You've successfully authenticated, but GitHub does not provide shell access.
I was also trying to set current SSH key from my machine to private repository, but it told me that this key is already using.
So, is it possible to clone my private repository with the expected user?
I was looking for something like:
git login
But this command doesn't exist.
P.S. I've set my
git config --global user.name
git config --global user.email
for a user with expected username and email who has enough of permissions.