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

标签 git ubuntu config

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

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

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

链接到我的配置 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

关于git - 如何在 Linux 终端中删除 git branch.master,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34607683/

相关文章:

PhpStorm & PHPUnit 6 : PhpStorm always creates PHPUnit templates for < 5

git - 删除我文件夹中的所有 .gitignore 文件

ubuntu - Ubuntu 中的 Raspberry PI 交叉编译 QT GUI 应用程序

git - 远程 : Forbidden fatal: unable to access

php - Undefined offset : -1 ErrorException thrown from phpseclib when trying to connect to remote server?是什么意思

ubuntu - 不小心从修补板闪存中删除了 u-boot

json - 使用json不配置Elasticsearch索引

emacs - emacs 更好的默认设置

android - 使用 repo 同步 android 源时出现 UnicodeDecodeError

git - 每次提交时我都必须 'git add' 一个文件吗?