github和git@osc提交问题
生活随笔
收集整理的这篇文章主要介绍了
github和git@osc提交问题
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
为什么80%的码农都做不了架构师?>>>
今天想用git@osc push下测试下自己能否正常使用git@osc的git仓库的,公钥SSH 已经加好。
ssh -T git@git.oschina.net测试正常。
结果报错could not read Username for 'https://git.oschina.net': No such file or directory,
然后又用了github账号试了下,还是提示这个,could not read Username for 'https://github.com': No such file or directory,这就纳闷了,之前用的好好的github,突然不行了。
网上搜了下,发现可能是git版本的原因:我的版本Git-1.8.5.2-preview20131230
突然想起来之前查过这个,记性不好,还是写下来吧。
解决方法:
git remote rm origin
git remote add origin 'git@github.com:username/repo.git'
成功上传。
以此备忘而已。
转载于:https://my.oschina.net/jm2020/blog/362994
总结
以上是生活随笔为你收集整理的github和git@osc提交问题的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 浏览器模拟用户登陆
- 下一篇: Hive hang without re