1. 删除全局username和email
git config —global —unset user.name
git config —global —unset user.email
2. 配置ssh密钥
ssh-keygen -t rsa -C “wangwjt1121@126.com”
id_rsa_github
ssh-keygen -t rsa -C “jiantao.wang@kcc.com”
id_rsa_gitlab
3. 将公钥粘贴到各自网站的ssh里
4. 各自本地仓库初始化
git init
git config user.name ‘wangwjt’
git config user.email ‘wangwjt1121@126.com’
git init
git config user.name ‘wangjiantao’
git config user.email ‘jiantao.wang@kcc.com’
5. 测试连接
git clone http://XXXXXXXXXXXXXXXXXXXX