repository error? Bitbucket..
I tried to push the code to the repository but failed error is here..
$ git push origin master
error: src refspec master does not match any
Is the remote branch named main? git branch -r will list the remote branches
@Shivamyadav git branch-r will list all of the remote branches
@tykus cmd this git branch -r shows nothing output
@Shivamyadav there are no remote branches. Is this a completely new remote repo?
You can just push creating the remote branch from the current branch using:
git push origin HEAD
@tykus yeah, this cmd also gives same error
git push origin HEAD error: failed to push some refs to 'bitbucket.org:shivamyadav4046/school-management-project.git'
@tykus same just the last things chages , like heads, master etc
@Shivamyadav can you post the full error message from git push origin HEAD please?
Please or to participate in this conversation.