前往闪闪的小窝获得更好的阅读和评论体验
问题描述
git push的时候报错
$ git push -u origin main
Enumerating objects: 490, done.
Counting objects: 100% (490/490), done.
Delta compression using up to 12 threads
Compressing objects: 100% (470/470), done.
Writing objects: 100% (490/490), 1.23 MiB | 1.35 MiB/s, done.
Total 490 (delta 48), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (48/48), done.
remote: fatal error in commit_refs
To https://github.com/KnightKilito/GoldenArch.git
! [remote rejected] main -> main (failure)
error: failed to push some refs to 'https://github.com/KnightKilito/GoldenArch.git'
解决办法
重新git push一下就行
输入:
$ git push -u origin main
效果:
$ git push -u origin main
Enumerating objects: 490, done.
Counting objects: 100% (490/490), done.
Delta compression using up to 12 threads
Compressing objects: 100% (470/470), done.
Writing objects: 100% (490/490), 1.23 MiB | 1.45 MiB/s, done.
Total 490 (delta 48), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (48/48), done.
To https://github.com/KnightKilito/GoldenArch.git
* [new branch] main -> main
branch 'main' set up to track 'origin/main'.