GitHub: Multiple account setup

后端 未结 4 1172
野性不改
野性不改 2020-12-08 17:53

I am trying since more than 3 hours to setting up multiple account for github and litteraly tired. I have tried out almost all possible way describe here, github and article

4条回答
  •  心在旅途
    2020-12-08 18:38

    For your config to be taken into account, you need to use its Host name in your remote address:

    git remote add origin ac2.github.com:myaccount/my
    

    If you have defined a HOME environment variable (which isn't defined by default on Windows, but is defined if you are using the msysgit git-cmd.bat) to a directory under which you have your .ssh directory, with its id_rsa_ac2 private key, and id_rsa_ac2.pub public key, then it will work.

提交回复
热议问题