如何在 linux 终端中删除 git branch.master

How to remove git branch.master in linux terminal

当我尝试安装项目时出现以下错误。

error: src refspec master does not match any.
error: failed to push some refs to ****

我看了这个 Solution,但找不到我的问题的解决方案。

Link 到我的配置 image.

您的配置有问题。

尝试再次克隆它,它应该可以工作。

配置 master.remote 应设置为 origin 而不是 github

这就是它对您不起作用的原因。

编辑 .git/config 并更改它

[remote "origin"]
    url = https://github.com/omernaci/FilterDesign.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master