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

来源:互联网 发布:在淘宝买甩棍违法吗 编辑:程序博客网 时间:2024/05/17 09:02
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" 同上



原创粉丝点击