今天使用Git 添加远程github仓库的时候提示错误:fatal: remote origin already exists.
Git提示fatal: remote origin already exists解决办法:之前添加过远程库

最后找到解决办法如下:
1、先删除远程 git 仓库

git remote rm origin
git 远程 移除 起源

$ git remote rm origin

2、再添加远程 Git 仓库

$ git remote add origin [email protected]:FBing/Java-code-generator

如果执行 git remote rm origin 报错的话,我们可以手动修改gitconfig文件的内容

$ vi .git/config

Git提示fatal: remote origin already exists解决办法:之前添加过远程库

把 [remote “origin”] 那一行删掉就好了。

今天使用Git 添加远程github仓库的时候提示错误:fatal: remote origin already exists.
Git提示fatal: remote origin already exists解决办法:之前添加过远程库

最后找到解决办法如下:
1、先删除远程 git 仓库

git remote rm origin
git 远程 移除 起源

$ git remote rm origin

2、再添加远程 Git 仓库

$ git remote add origin [email protected]:FBing/Java-code-generator

如果执行 git remote rm origin 报错的话,我们可以手动修改gitconfig文件的内容

$ vi .git/config

Git提示fatal: remote origin already exists解决办法:之前添加过远程库

把 [remote “origin”] 那一行删掉就好了。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-30
相关资源
相似解决方案