首页 > Web开发 > 详细

git上传项目报错:fatal: remote origin already exists.

时间:2020-03-12 12:33:22      阅读:58      评论:0      收藏:0      [点我收藏+]

git上传项目到github报错:fatal: remote origin already exists.解决方案

 

在上传本地代码到github仓库时,有时候会出现以下报错:

$ git remote add origin https://github.com/Mr-Mei/VueDemo.git
fatal: remote origin already exists.

技术分享图片

 

 

 

解决办法:

1.先移除
git remote rm origin

技术分享图片

 

 

 

 

2.再次添加
git remote add origin https://github.com/Mr-Mei/VueDemo.git

技术分享图片

 

 页面中可以看到,按照以上解决方法最后已经成功上传项目!!!!

git上传项目报错:fatal: remote origin already exists.

原文:https://www.cnblogs.com/meijifu/p/12467934.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!