Git 提示fatal: remote origin already exists 错误解决办法
Posted 651434092qq
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git 提示fatal: remote origin already exists 错误解决办法相关的知识,希望对你有一定的参考价值。
1、先删除远程 Git 仓库
git remote rm origin
2、再添加远程 Git 仓库
git remote add origin https://github.com/XXXXXXXXXXX/design-patterns.git
注: 如果执行 git remote rm origin 报错的话,我们可以手动修改gitconfig文件的内容
vi .git/config
把 [remote “origin”] 那一行删掉就好了。
注:若出现“Updates were rejected because the tip of your current branch is behind”
本博客这篇有讲如何解决? https://www.cnblogs.com/651434092qq/p/11015806.html
以上是关于Git 提示fatal: remote origin already exists 错误解决办法的主要内容,如果未能解决你的问题,请参考以下文章
git 提示:fatal: remote origin already exists. 错误解决
Git 提示fatal: remote origin already exists 错误解决办法
gitGit 提示fatal: remote origin already exists 错误解决办法
git报错:fatal: remote origin already exists.
Git 技术篇 - git remote修改移除仓库源的使用方法,git添加仓库源提示fatal: remote origin already exists.问题解决
git clone 提示:remote not found fatal repository "……" not found