使用 Github 桌面将代码推送到 github 时出现错误,无法推送某些引用

I am getting error while pushing code to github using Github Desktop, Failed to push some refs

我在使用 github 桌面将代码推送到 github 时遇到此错误。我附上了图片。

所以我无法使用 github 进行推送,但找到了解决方法。我已经使用命令行 (git bash) 推送了这个特定项目的代码。最初 git bash 抛出相同的错误 "failed to push some refs"。这是我的哈士奇包裹,不允许推。我使用了以下命令。

To push it forcefully, just run git push origin master --no-verify

并用它来检查你的问题I ran npm run prepush to see debug the error

好吧,由于我使用的是 ngx-admin 主题,我遇到了一些 linting 错误。

如果我在 linting 问题后遇到永久性解决方案,我会更新它,但它目前运行良好。

大家也可以看看这个post,供参考。我从其中一个答案中得到了提示。 failed to push some Refs