同一个系统上管理多个github账号
有不少人拥有多个github账号,比如个人账号,用户开源的账号。那如何在同一台电脑上管理多个github账号呢? 1. 使用https方式 git clone https://duanhjlt@github.com/duanhjlt/blog.git git clone https://duan0120@github.com/duan0120/xvm.git 2. 使用ssh方式 2.1 创建ssh key ssh-keygen -t ed25519 -C "duanhjlt@163.com" -f ~/.ssh/id_ed25519_github1 ssh-keygen -t ed25519 -C "duanhjlt@gmail.com" -f ~/.ssh/id_ed25519_github2 2.2 将ssh公钥添加到对应的github账号 2.3 设置ssh 2.3.1 设置配置文件 # ~/.ssh/config Host github.com HostName...