添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Create
cancel
Showing results for
Search instead for
Sign up Log in

I have a lot of repo on bitbucket and never had an issue but today, when trying to create a new one, i seem to cannnot set a default master branch, i set it in the repo creation but when i try to push my local code to the repo i get the following:

git push origin master 
error: src refspec master does not match any
error: failed to push some refs to 'https://bitbucket.org/******/frontend.git'


If i go to my repo setting i see the master as default but let's say i try change the repo name, i get an error related to the default branch (see attached screen).

Any idea what is happening? This seem very new, never had such issue before.


git.png

Hi Christophe and welcome to the community!

Have you added the changes in the local repo with the following command?

git add .

After that, did you commit the changes with the following command?

git commit -m "some commit message"

I can reproduce the error if I attempt to push from a local repo that doesn't have any commits yet.

Do the following commands show any commits and branches respectively, if you execute them in the directory of you local clone?

git log
git branch

Regarding the inability to change the repository details from the website, this is because of a bug that occurs when the repo is empty:

  • https://jira.atlassian.com/browse/BCLOUD-23139
  • Once commits are pushed to the repo, you will be able to change the repo's details.

    Kind regards,
    Theodora