场景
在一台电脑上,有两个Repository ,它们分属两个不同的 Github 账号。
步骤
为 Repository 配置 Github 的 Git 账号
使用终端进入到 Repository A目录下,配置 Git 账号
使用终端进入到 Repository B 目录下,配置 Git 账号
为不同的 Github 用户生成 SSH 密钥
为 user_a 生成 SSH 密钥,密钥名为 user_a_id_rsa
同样操作,为 user_b 生成 SSH 密钥,密钥名为 user_b_id_rsa