Fab Academy at AS220 Labs

January 11, 2010 5:21 PM

Intro to Bazaar

by Noah Bedford

Creating a bzr repository:

First, inform bazaar as to your personage:

bzr whoami "Mr. Foo <mrfoo@as220.org>"

Then, make a directory for your repository: mkdir repository

Initialize the repository:

bzr init

Add the current directory:

bzr add *

Make the first commit:

bzr commit -m "Hello World"

Now, every time you want to add files, run

bzr add <files>

again, and

bzr commit -m "Message".

To check out your repository

start an ssh server (openssh-server in ubuntu, check the box in the preferences window in OSX), and run

bzr branch  sftp://user@ip-address/path/to/directory

Then

bzr pull

To update the repository, bzr commit again and then

bzr push

Have fun!

-\n

Return to front

Older articles