源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  【Git】Bug —— Updates were rejected because the remote contains work that you do

【Git】Bug —— Updates were rejected because the remote contains work that you do

分类: 文章 • 2023-11-04 13:31:09

Question:

git add,commit 之后 git push -u origin master 报错
【Git】Bug —— Updates were rejected because the remote contains work that you do

Answer:

  1. git pull origin master --allow-unrelated-histories
    【Git】Bug —— Updates were rejected because the remote contains work that you do
    两次Esc键 退出编辑模式,:wq 保存并退出

  2. git pull origin master
    【Git】Bug —— Updates were rejected because the remote contains work that you do

  3. git push -u origin master
    【Git】Bug —— Updates were rejected because the remote contains work that you do

相关推荐

  • GitHub提交的时显示Updates were rejected because the remote contains work that you do
  • GitHub提交的时显示Updates were rejected because the remote contains work that you do
  • GIT首次上传代码提示:Updates were rejected because the remote contains work that you do
  • git 推送更新出现错误: Updates were rejected because the remote contains work that you do
  • 【Git】Bug —— Updates were rejected because the remote contains work that you do
  • git push出现Updates were rejected because the remote contains work that you do not have locally
  • Git error: hint: Updates were rejected because the remote contains work that you do hint: not have l
  • 如何使用GitHub管理自己的项目同时使用gitlab管理公司的项目
  • 调用百度AipFace做人脸检测
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号