github push出错(1)You can't push to git:// Use https://
时间:2015-04-22 17:44:09
收藏:0
阅读:539
fatal: remote error:
You can‘t push to git://github.com/niexiaobo/remote.git
Use https://github.com/niexiaobo/remote.git
解决:
1、切换到checkout的文件夹(比如当前项目保存到/Users/mac/Desktop/SHiosProject/gitMangerfiles/KVO)
nie-xiao-bo-mac-pro:~ mac$ cd /Users/mac/Desktop/SHiosProject/gitMangerfiles/KVO
2、删除原有远程信息
nie-xiao-bo-mac-pro:KVO mac$ git remote rm origin
3、新增刚才报错的链接
nie-xiao-bo-mac-pro:KVO mac$ git remote add origin https://github.com/niexiaobo/remote.git
nie-xiao-bo-mac-pro:KVO mac$
原文:http://www.cnblogs.com/niexiaobo/p/4447993.html
评论(0)