paulgorman.org

Bazaar version control notes

Bazaar is available on Linux, Windows, and OS X. The high-quality graphical front-end Bazaar Explorer is available on all three. Here's how you install on Debian:

sudo aptitude install bzr sudo aptitude install bzr-explorer

Configure bzr: bzr whoami "John Smith <jsmith@example.com>"

Launch explorer with bzr explorer.

Create a remote empty repository:

bzr init-repo --no-trees sftp://example.com/~/projects/

Create a new project in the remote repository:

bzr init sftp://example.com/~projects/myproj

Initial commit of existing (local) files to new (remote) repository:

cd ~/projects bzr checkout sftp://example.com/~/projects/myproj myproj cd myproj cp -ar ~/existingfiles/myproj/* . bzr add bzr commit -m "Initial import of myproj files."

Because the above includes a checkout, any local commits will automatically be committed on the central/remote repository.

To checkout a copy of the project on another box:

cd ~/projects/ bzr checkout sftp://example.com/~/projects/myproj myproj

To update you local checkout with the latest updates from the central/remote repository:

bzr update