Problem sending a project to Github

Asked

Viewed 570 times

-1

Hello, all right ? I was sending a project to github and ended up finding a problem that hadn’t happened to me yet.

error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/xxx/xxx'

I searched to find the answer, even there are answers in the stack overflow itself, but in English, which I tried to base on them and solve but did not succeed. If anyone can help me, I’d be very grateful !

1 answer

0


Try to initialize git first inside your code.

git init

Then add any file, it can be a README.Md

and carry out the trade git commit -m "seu commit aqui"

then make the command "git push origin master"

will probably work.

  • $ git push origin master error: src refspec master does not match any error: failed to push some refs to 'origin' unfortunately these errors appeared, know tell me what might have been ?

  • Type the command 'git status', and see what returns.

  • It worked, thank you very much !!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.