出错的git命令:

git push -u origin main

解决方法:
git show-ref
8c4c7afc8d831dcba4f8989e39eb8286c1657439 refs/heads/master

新命令:

git push -u origin master

成功解决


参考:
https://stackoverflow.com/questions/4181861/message-src-refspec-master-does-not-match-any-when-pushing-commits-in-git

相关文章:

  • 2021-09-07
  • 2021-12-16
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案