码迷,mamicode.com
首页 > 移动开发 > 详细

推送代码分支时出现:fatal: 'origin' does not appear to be a git repository

时间:2018-09-04 13:37:44      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:分享   span   git   osi   fat   分支   not   图片   inf   

关于ubuntu进行提交本地分支到远程库出现问题:

技术分享图片

解决方案:

执行如下命令:

git remote add origin git@github.com:yourusername/test.git
yourusername:为github注册名
test:为远程库名
如图所示:

技术分享图片

应执行命令为:
git remote add origin git@github.com:fwl8888/f01.git

 

再次执行推送提交即可

 

推送代码分支时出现:fatal: 'origin' does not appear to be a git repository

标签:分享   span   git   osi   fat   分支   not   图片   inf   

原文地址:https://www.cnblogs.com/fwl8888/p/9583425.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!