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

Git 码云操作

时间:2018-06-30 11:05:40      阅读:176      评论:0      收藏:0      [点我收藏+]

标签:erro   --   zha   this   IV   update   hint   not   war   

https://www.cnblogs.com/lanxiang/p/7487971.html 

将项目提交到码云

在码云创建项目

然后在项目目录下:

技术分享图片技术分享图片

打开后输入:

git init

目录下出现.git文件即为成功

然后右键:

技术分享图片技术分享图片技术分享图片技术分享图片

然后依次:

扫描

添加

提交

上传

 

 

技术分享图片

 

 

 

技术分享图片

 

 

 

错误:

Pushing to https://gitee.com/jiangwenzhang/zbwazn.git
To https://gitee.com/jiangwenzhang/zbwazn.git
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to https://gitee.com/jiangwenzhang/zbwazn.git
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., git pull ...) before pushing again.
hint: See the Note about fast-forwards in git push --help for details.

技术分享图片

解决办法:

如果是第一次上传,可以强制覆盖:

技术分享图片

 

Git 码云操作

标签:erro   --   zha   this   IV   update   hint   not   war   

原文地址:https://www.cnblogs.com/jiangwz/p/9229794.html

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