解决办法如下:
1、先输入$ git remote rm origin(删除关联的origin的远程库)
2、再输入$ git remote add origin git@github.com:(github名)/(git项目名).git 就不会报错了!
3、如果输入$ git remote rm origin 还是报错的话,error: Could not remove config section ‘remote.origin’. 我们需要修改gitconfig文件的内容
4、找到你的github的安装路径,找到一个名为gitconfig的文件,打开它把里面的[remote “origin”]那一行删掉就好了!

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2021-12-11
  • 2022-01-05
  • 2021-07-19
猜你喜欢
  • 2021-07-24
  • 2021-06-12
  • 2022-01-24
  • 2022-12-23
  • 2022-01-17
  • 2021-04-29
  • 2022-12-23
相关资源
相似解决方案