GitHub Desktop的Primary remote repository弱智

使用GitHub Desktop Version 3.3.3 (x64),感觉非常弱智,当库添加其他云连接比如gitCode, gitee,同步到国内的云库上:

比如:

git remote add gitee  https://gitee.com/XXX/xxx.git

git remote add gitcode https://gitcode.com/XXX/xxx.git

之类的远程库URL后,GitHub Desktop->Repository->Repository Settings...

中的 Primary remote repository(urlName)会变!   而且

这个问题时有时无,莫名其妙!!!GitHub Desktop没找到相关设置!!!!!

用git remote -v 可见,按字母大小排列顺序,小的排前面,比如 gitcode就会排最前面,

变成了Primary remote repository(gitcode),内容ULR也变成gitcode的。从而向gitHub.COM推送不成功。 

为了解决这个问题,把gitHub.com  URL用a命名,一般就排在最前面了。

git remote add a https://github.com/XXX/xxx.git

GitHub Desktop才能正确push 到 GitHub.com里

时有时无,处了这个规律,还没找到其他规律,莫名其妙

浪费了我一个下午

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值