我正在尝试将分支从本地推送到原点。分支名称和路径相同。我已经从这个分支推拉了一段时间,从来没有遇到过问题。但突然间,它开始表现得很糟糕。上次我尝试使用以下命令推送到原点时:
git push origin feature/Prizefulfilment
它给了我以下错误:
72c6c1da98e5cff4484e254a538d9e3b472156ff but expected 0000000000000000000000000000000000000000
我用谷歌搜索了一遍,但还没有找到一个非常令人满意的解决方案。
我的确切错误如下所示:
$ git push origin feature/Prizefulfilment
Counting objects: 126, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (75/75), done.
Writing objects: 100% (78/78), 8.83 KiB, done.
Total 78 (delta 61), reused 0 (delta 0)
error: Ref refs/heads/feature/Prizefulfilment is at 72c6c1da98e5cff4484e254a538d9e3b472156ff but expected 0000000000000000000000000000000000000000
remote: error: failed to lock refs/heads/feature/Prizefulfilment
To git@devtools.contestfactory.com:OpusOneSCRUM
! [remote rejected] feature/Prizefulfilment -> feature/Prizefulfilment (failed to lock)
error: failed to push some refs to 'git@devtools.contestfactory.com:OpusOneSCRUM'`
有任何想法吗?