Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-21019

When creating a repository and adding a value to the field "Default branch name", Bitbucket will still show the word 'master' under the instructions

XMLWordPrintable

      Issue Summary

      When creating a new repository and adding a value to the field "Default branch name", the repository will still show the text on the next page:

      git remote add origin git@bitbucket.org:workspacename/repositoryname.git
      git push -u origin master

      Steps to Reproduce

      1. Create a new repository and add a value to the field "Default branch name"
      2. Don't include a README nor .gitignore file
      3. Click on Create repository
      4. Bitbucket will redirect you to the Source page on this repository
      5. Under "Get your local Git repository on Bitbucket", it will show you the following instructions:

      Step 1: Switch to your repository's directory

      cd /path/to/your/repo

      Step 2: Connect your existing repository to Bitbucket

      git remote add origin git@bitbucket.org:carolineroos/hello.git
      git push -u origin master

      Expected Results

      Update the branch name to the one the user has created

      Actual Results

      The command still shows the word 'master'

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Unassigned Unassigned
              2109285dcbb0 Caroline R
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: