Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Code Review of master

Hi, 

I would like to know if we can submit a master branch for a code review. It is that I want to submit my project for code review for the first time. Since I'm  the only person working on this project, there are no branches for the repo.

Thanks for the help.

3 answers

1 accepted

You cannot code review the very first commit to master --- at least not using Bitbucket's pull-request functionality for running code reviews!

The best workaround is to push an empty commit first:

 

git commit --allow-empty

git push

 

Oh...ok. Thanks for the reply.

If you have a repository with commits allready in the master, you can still do a code review artificially by making a new repository with two branches.

So, how to do this when already a lot of work was done on the master branch? 

Rebasing public commits can be a mess, although in this case there is only 1 developer and no other branches AFAIK.

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,888 views 10 16
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