Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove git branch.master in linux terminal

Tags:

git

config

ubuntu

When I try to install a project I get the following error .

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

I looked this Solution, but could not find solution of my problem.

Link to my configuration image.

like image 555
omernaci Avatar asked Feb 04 '26 18:02

omernaci


1 Answers

You have problem in your configuration.

Try to clone it again and it should work.

the configuration master.remote should be set to origin and not to github

this is why its not working for you.

Edit the .git/config and change it

[remote "origin"]
    url = https://github.com/omernaci/FilterDesign.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master
like image 177
CodeWizard Avatar answered Feb 06 '26 08:02

CodeWizard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!