Difference between revisions of "Using bzr"
(New page: See http://doc.bazaar-vcs.org/bzr.1.11/ or more specifically http://doc.bazaar-vcs.org/bzr.1.11/en/tutorials/tutorial.html) |
|||
Line 1: | Line 1: | ||
+ | == Official Tutorials == | ||
+ | |||
See http://doc.bazaar-vcs.org/bzr.1.11/ or more specifically http://doc.bazaar-vcs.org/bzr.1.11/en/tutorials/tutorial.html | See http://doc.bazaar-vcs.org/bzr.1.11/ or more specifically http://doc.bazaar-vcs.org/bzr.1.11/en/tutorials/tutorial.html | ||
+ | |||
+ | == Quick List of Commands == | ||
+ | |||
+ | To see some help: | ||
+ | |||
+ | bzr help | ||
+ | |||
+ | To ensure that your commits have the correct name (run once before anything else): | ||
+ | |||
+ | bzr whoami "My Name <my.email@example.com>" | ||
+ | |||
+ | To create a new repository: | ||
+ | |||
+ | mkdir example | ||
+ | cd example | ||
+ | bzr init | ||
+ | |||
+ | To add a file to the repository: | ||
+ | |||
+ | bzr add example.c | ||
+ | |||
+ | To move/rename a file: | ||
+ | |||
+ | bzr mv <old file> <new file> | ||
+ | |||
+ | To commit changes to a file after modifying it: | ||
+ | |||
+ | bzr ci example.c | ||
+ | |||
+ | To commit changes to the whole repository: | ||
+ | |||
+ | bzr ci | ||
+ | |||
+ | To see uncommited changes in the current repository/file: | ||
+ | |||
+ | bzr diff [filename] | ||
+ | |||
+ | To see the revision log: | ||
+ | |||
+ | bzr log [filename] | ||
+ | |||
+ | To see the current state of the repository: | ||
+ | |||
+ | bzr st | ||
+ | # or | ||
+ | bzr status | ||
+ | |||
+ | To ignore files so they aren't considered in "bzr st" and other commands: | ||
+ | |||
+ | bzr ignore <filename> | ||
+ | |||
+ | To give a meaningful name to a revision (ie. to tag a particular released version): | ||
+ | |||
+ | bzr tag <tag name> | ||
+ | |||
+ | To create a copy of the repository: | ||
+ | |||
+ | bzr branch <existing repo> <new repo> | ||
+ | |||
+ | To merge changes from one repo to another: | ||
+ | |||
+ | cd my_repo | ||
+ | bzr merge /path/to/other/repo |
Revision as of 16:31, 28 January 2009
Official Tutorials
See http://doc.bazaar-vcs.org/bzr.1.11/ or more specifically http://doc.bazaar-vcs.org/bzr.1.11/en/tutorials/tutorial.html
Quick List of Commands
To see some help:
bzr help
To ensure that your commits have the correct name (run once before anything else):
bzr whoami "My Name <my.email@example.com>"
To create a new repository:
mkdir example cd example bzr init
To add a file to the repository:
bzr add example.c
To move/rename a file:
bzr mv <old file> <new file>
To commit changes to a file after modifying it:
bzr ci example.c
To commit changes to the whole repository:
bzr ci
To see uncommited changes in the current repository/file:
bzr diff [filename]
To see the revision log:
bzr log [filename]
To see the current state of the repository:
bzr st # or bzr status
To ignore files so they aren't considered in "bzr st" and other commands:
bzr ignore <filename>
To give a meaningful name to a revision (ie. to tag a particular released version):
bzr tag <tag name>
To create a copy of the repository:
bzr branch <existing repo> <new repo>
To merge changes from one repo to another:
cd my_repo bzr merge /path/to/other/repo