码迷,mamicode.com
首页 > 其他好文 > 详细

把代码提交到码云

时间:2018-12-13 11:28:50      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:解决   set   for   push   bsp   路径   远程   div   com   

项目初始化git:git init 
连接请求git:git remote add origin https://gitee.com/LHJ0315/AAA.git

更改远程路径:git remote set-url origin https://gitee.com/LHJ0315/AAA.git

强制提交代码:git push -u origin master --force

提交代码:git push origin master

产生如下错误:

error: src refspec master does not match any. 
error: failed to push some refs to "xxxxxxx"
然后用如下方法解决了:

git add .
git commit -m "write your message"

 

把代码提交到码云

标签:解决   set   for   push   bsp   路径   远程   div   com   

原文地址:https://www.cnblogs.com/huanhuan55/p/10112640.html

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