Git flow in Bazaar ================== Prepare the initial directory layout ------------------------------------ ``` $ bzr init-repo my_project $ cd my_project $ mkdir my_project/branches ``` Clone the specific branch ------------------------- ``` $ bzr branch --no-tree bzr+ssh://example.com/bzr/my_project/master branches/master ``` Prepare the working tree layout (if it not yet exists) ------------------------------------------------------ ``` $ bzr checkout --lightweight branches/master this ``` Fork the current branch ----------------------- ``` $ bzr push ../branches/develop ``` Switch your working tree to another branch ------------------------------------------ ``` $ bzr switch ../branches/develop ``` Merge the local branches ------------------------ ``` $ bzr merge ../branches/master ``` Show the current branch name and remote locations ------------------------------------------------- ``` $ bzr info ``` Push the current branch to the remote location ---------------------------------------------- ``` $ bzr push bzr+ssh://example.com/bzr/my_project/develop ```