您的位置: 首页 > 文章 > 【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 报错 Answer: git pull origin master --allow-unrelated-histories两次Esc键 退出编辑模式,:wq 保存并退出 git pull origin master git push -u origin master