github和git@osc提交问题
生活随笔
收集整理的這篇文章主要介紹了
github和git@osc提交问题
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
為什么80%的碼農(nóng)都做不了架構(gòu)師?>>> ??
? ?今天想用git@osc push下測試下自己能否正常使用git@osc的git倉庫的,公鑰SSH 已經(jīng)加好。
ssh?-T?git@git.oschina.net測試正常。
結(jié)果報錯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,突然不行了。
網(wǎng)上搜了下,發(fā)現(xiàn)可能是git版本的原因:我的版本Git-1.8.5.2-preview20131230
突然想起來之前查過這個,記性不好,還是寫下來吧。
解決方法:
git remote rm origin
git remote add origin 'git@github.com:username/repo.git'
成功上傳。
以此備忘而已。
轉(zhuǎn)載于:https://my.oschina.net/jm2020/blog/362994
總結(jié)
以上是生活随笔為你收集整理的github和git@osc提交问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 浏览器模拟用户登陆
- 下一篇: Hive hang without re