博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git 提交项目代码到码云步骤 以及出现错误解决办法
阅读量:7124 次
发布时间:2019-06-28

本文共 723 字,大约阅读时间需要 2 分钟。

git init

git remote add origin 项目地址
git add .
git commit -m "注释"
git push origin master

出现错误 

$ git push origin master
To https://gitee.com/heguxin/XXX
 ! [rejected]        master -> master (fetch first)
error: failed to push some refs to 'https://gitee.com/heguxin/XXX
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 pull --rebase origin master
git push origin master

转载于:https://www.cnblogs.com/heguxin/p/10481346.html

你可能感兴趣的文章
Highcharts-功能强大的图表库的应用
查看>>
mysql oracle python连接
查看>>
根据wsdl远程调用接口
查看>>
《zabbix进程组成结构与zabbix_agentd.conf配置文件参数详解》-3
查看>>
Postfix邮件服务器的原理和postfix + dovecot配置,使用Thunderbird发送邮件和SMTP认证...
查看>>
CA数字证书服务的配置、搭建安全的WEB服务器、安全的邮件服务器
查看>>
Map集合的第二种迭代--学习笔记
查看>>
SpringBoot的学习笔记
查看>>
解决Wine安装时提示You could try running: rpm -Va –nofiles –nodigest问题
查看>>
java服务器搭建(一)日志系统
查看>>
金币阵列问题
查看>>
安装Android开发工具及环境配置
查看>>
SpringJDBC jdbcTemplate获取自增主键
查看>>
SpringMVC通过配置mvc:view-controller直接解析到视图页面
查看>>
解决vmware-tools 安装时出现的错误
查看>>
MICROSOFT-软件最终用户许可协议
查看>>
【NetApp】7-mode DNS配置
查看>>
悬浮滚动网站jquery在线客服
查看>>
mysql复制表(同一数据库,不同数据库)
查看>>
函数练习小结
查看>>