Bzr:init

From OpenBrainstem

Jump to: navigation, search

The bzr init command is used to initialize Bazaar versioning for a directory tree. It only needs to be run for the base directory.

See also the bzr init-repository command.

[edit] Common Usage

[edit] From the man Page

bzr init [LOCATION]

Options:
--format ARG              Specify a format for this branch.
                          Current formats are: default, knit,
                          metaweave and weave. Default is knit;
                          metaweave and weave are deprecated
--help, -h                show help message

Make a directory into a versioned branch.

Use this to create an empty branch, or before importing an existing project.

If there is a repository in a parent directory of the location, then the history of the branch will be stored in the repository. Otherwise init creates a standalone branch which carries its own history in

If there is already a branch at the location but it has no working tree, the tree can be populated with bzr checkout.

Recipe for importing a tree of files:

$ cd ~/project/
$ bzr init
$ bzr add .
$ bzr status
$ bzr commit -m ´imported project´
Personal tools