问题

远程创建仓库后,第一次push到远程,本地提示

Updates were rejected because the remote contains work that you do

解决

使git允许合并不相关的历史,使用命令

  1. git pull origin master --allow-unrelated-histories

相关文章:

  • 2022-02-08
  • 2022-02-08
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
猜你喜欢
  • 2021-04-07
  • 2022-02-08
  • 2021-08-05
  • 2021-11-15
  • 2021-07-01
  • 2021-09-06
相关资源
相似解决方案