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

Code Review of master

najeeba July 15, 2018

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

1 vote
Answer accepted
Julius Davies _bit-booster_com_
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.
July 15, 2018

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

 

najeeba July 15, 2018

Oh...ok. Thanks for the reply.

0 votes
Marco Okker July 15, 2020

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.

0 votes
Loyvanbeek October 1, 2018

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
AUG Leaders

Atlassian Community Events