Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

No master branch when creating a repository?

saurabhspatil June 19, 2018

Hi Team,

 

I have created a new repository. It has no master branch. when I go to create a new branch It says to select from which branch. I want to create master branch from bitbucket. How can I do it. I have also referred https://community.atlassian.com/t5/Bitbucket-questions/No-master-branch-when-creating-a-repository/qaq-p/35702. but no use.

2 answers

1 vote
steven schkolne
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 8, 2018

I just ran across this silly issue. The fix was as simple as creating a readme by clicking the button in the bitbucket web interface, as Saurabh Patil notes above.

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2018

HI @saurabhspatil

Welcome to the community!

To create a repository first you to install Git on your system.

If the Git has been available/installed, then Create a Directory in which you want to create a repository.

Run the below command.

> git init: it will initialize the empty repository with .get dir with default master branch.

> git config --global user.name and user.email: configure your username and email 

> git clone <reposity_URL> :clone your repository to local system.

While creating a branch from jira,  then select the master branch from which you can create new branch like feature, bug fix, hotfix..etc

saurabhspatil June 20, 2018

@Yogesh MudeThanks dude for your solution, I am using git through eclipse, so is there any way to do it from eclipse or I have to do it from command line?

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2018

First, create it through command/terminal then you can pull/checkout the branch in eclipse.

saurabhspatil June 20, 2018

@Yogesh Mude Thanks will try it and update you.

saurabhspatil June 20, 2018

@Yogesh Mude it is not working :(

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2018

Ok,could you please tell me the error which you are getting and the Steps  to reproduce the same.

saurabhspatil June 20, 2018

@Yogesh Mude I got the solution. create a readme in bitbucket after creating new repo and commit it. After first commit  master branch is created. Happy coding :)

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2018

Good to hear you that you got the solution.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events