如何修复失败的本地refs git错误



我正试图将一些更改从本地功能分支推送到远程,但不断收到以下消息

git.exe push--all--progress"origin"

Counting objects: 52, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (14/14), done.
Writing objects: 100% (15/15), 1.52 KiB | 0 bytes/s, done.
Total 15 (delta 10), reused 0 (delta 0)
remote: error: failed to lock refs/heads/develop/feature_123
To https://bitbucket.org/xxx/abcd
! [remote rejected] develop/feature_123 -> develop/feature_123 (failed to lock)
error: failed to push some refs to 'https://bitbucket.org/xxx/abcd'

git did not exit cleanly (exit code 1) (36302 ms @ 10/15/2014 5:53:11 PM)

我浏览了一下谷歌和这里的stackoverflow。找到了一些解决方案,并尝试应用所有解决方案。然而,这些都不适用于我。有人知道我为什么在git推送上收到这个错误消息吗?我用的是乌龟。我尝试使用源代码管理。同样的事情。。。

您是否尝试过先从远程存储库中提取?如果是这样,并且您确信您有来自远程存储库的最新版本,您也可以尝试git push -f这可能会对您有所帮助:git error:未能将一些引用推送到

我发现了这个问题。我无法创建类似于development/feature_123的repo。当我创建了类似repo的feature_123并且没有处于开发中时,它就工作了。

最新更新