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$

05-27 10:29