GitHub 托管代码的部分 fatal: remote origin already exists
正在学习Markdown语法,自用笔记为主,多谢包涵
Github提示的上传托管代码的方式
…or push an existing repository from the command line
$ git remote add origin https://github.com/pp2475/Hello_Peter.git
$ git push -u origin master
之后又遇到以下问题,解决方案如下,参考问答
# 问题
$ git remote add origin 提示错误 "fatal: remote origin already exists"
# 分析
可能是由于系统已经配置过远程仓库?(清楚了解的朋友欢迎纠正)
# 解决
$ git remote rm origin
# 参考
本作品采用《CC 协议》,转载必须注明作者和本文链接
推荐文章: