I signed up for Git lab , clicked on the new project button, entered the necessary commands from the project page.

After the git push -u origin master command, I get errors error: src refspec master does not match any .

 error: failed to push some refs to 'http://git.cloudteam.pro/"my name"/dates.git' 

Tell me, please, what am I doing wrong and how to fix it.

  • one
    It seems that you do not locally have a master branch and Git does not understand what you want from it, uploading your master branch to the server master . And I also do not understand. - D-side
  • one
    @novichek git branch command, what shows? Also interesting is the git status command. Show what these commands output. - Vladimir Glinskikh

1 answer 1

Confused by the string "my name" in http://git.cloudteam.pro/"my name"/dates.git . Is that what you have in the console? Instead of "my name" you need to put your name on the gitlab. To do this, edit the .git/config file

  • one
    No need to manually edit .git/config , for this there is a git config command. - Roman