您的位置:首页 > 编程语言

win10 64位+git (v2.13.1) 同一台电脑向两个github账号提交

2017-07-11 11:55 1251 查看
1、步骤一:http://www.cnblogs.com/popfisher/p/5731232.html
2、步骤二:git config --global --unset credential.helper

3、从不同的github账号clone 项目(ssh方式)

4、每个项目单独设置user.name,user.email,credential.helper

git config user.name "xxx"

git config user.email "xxxx"

git confit credential.helper wincred

5、修改之后各自提交github互不影响

来来回回折腾到图学,亲测能用!

注意1、git clone "git@xxxx:yyyyy/zzz.git"  xxxx指的是 步骤一 产生的config 里面的Host

         2、git remote add origin "git@xxxx:yyyyy/zzz.git" 同上
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: