标签:
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$
github push出错(1)You can't push to git:// Use https://
标签:
原文地址:http://www.cnblogs.com/niexiaobo/p/4447993.html