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$ 

 

相关文章:

  • 2021-09-09
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-09
  • 2021-04-24
  • 2021-09-07
  • 2021-11-29
  • 2021-12-27
  • 2021-05-23
  • 2022-12-23
相关资源
相似解决方案