Multiple github accounts on the same computer?

后端 未结 25 2561
野的像风
野的像风 2020-11-22 02:56

Trying to work on my both my actual \"work\" repos, and my personal repos on git hub, from my computer.

The work account was set up first, and everything works flawl

25条回答
  •  迷失自我
    2020-11-22 03:53

    If you have created or cloned another repository and you were not able to pull from origin or upstream adding the ssh key at that directory using the following command worked.

    This is the error I was getting here:

    Warning: Permanently added the RSA host key for IP address '61:fd9b::8c52:7203' to the list of known hosts.
    Permission denied (publickey).
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    

    I used the following command, this works:

    ssh-add ~/.ssh/id_rsa_YOUR_COMPANY_NAME

提交回复
热议问题