2 Star 3 Fork 7

JoyPoint / helloGIT

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Switch Account.txt 678 Bytes
一键复制 编辑 原始数据 按行查看 历史
JoyPoint 提交于 2019-10-07 16:46 . Switch Account
在同一台电脑上切换不同gitee账号:
1、不同用户账号对应的秘钥对均已在本地生成好,并在gitee.com中添加;
2、.ssh/config文件中IdentityFile修改为对应账号的rsa;
3、git config --global user.name\email 为对应账号用户名和邮箱;
4、检查控制面板-用户账户-管理你的凭据-普通凭据,确保凭证匹配或为空;
5、用ssh -T git@gitee.com检查是否已关联对应账号;如果没有请检查上面几步。
6、后续按照常规步骤关联本地目录和远程库;
7、git pull 后,如出现没有readme.MD文件的问题,可以用$ git pull --rebase origin master再次拉取一次。
JavaScript
1
https://gitee.com/JoyPoint/helloGIT.git
git@gitee.com:JoyPoint/helloGIT.git
JoyPoint
helloGIT
helloGIT
master

搜索帮助