Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,059
Community Members
 
Community Events
165
Community Groups

default branch for git push command in README deprecated

After creating a new empty repo on Bitbucket.org, the git push command in README defaults to the deprecated branch 'master' instead of 'main'. Should this be changed to reflect the new default?

2 answers

1 accepted

0 votes
Answer accepted
Caroline R Atlassian Team Sep 10, 2021

Hi, @Enno! Welcome to the community! 

Before we start, I’d like to confirm that I've properly understood what is happening on your side. Feel free to correct me in case I have misunderstood something here.

Apparently, when creating a new repository and adding a value to the "Default branch name" field, the repository is still showing “master" on the readme page:

git remote add origin git@bitbucket.org:workspace/repository-name.git
git push -u origin master

Is that correct? If that’s the case, we already have an open bug to update the branch name to the one that was informed during the repository creation:

Our development team will post an update on the bug report when this is fixed. If you are not familiar with our Bug Request Policy, you can read more about it here

You can add yourself as a watcher (by selecting the Start watching this issue link in the bug report) if you'd like to get notified via email on any updates and also select the This affects my team link to indicate you are affected by this issue.

Please, feel free to share any additional questions or concerns regarding this case.

Kind regards,
Caroline

Yes, Caroline, this is indeed a duplicate of https://jira.atlassian.com/browse/BCLOUD-21019 and thus can be closed/merged. Thank you for confirming!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,255 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you