Skip to content

Instantly share code, notes, and snippets.

@kyokenn
Last active January 18, 2016 18:17
Show Gist options
  • Select an option

  • Save kyokenn/a0575811ab510afade01 to your computer and use it in GitHub Desktop.

Select an option

Save kyokenn/a0575811ab510afade01 to your computer and use it in GitHub Desktop.
Git flow in Bazaar

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment