Catalog / Bazaar Version Control Cheatsheet
Bazaar Version Control Cheatsheet
A quick reference guide to Bazaar (bzr), a distributed version control system, covering common commands and workflows.
Basic Commands
Branch Creation and Setup
|
Initialize a new Bazaar repository in the current directory. |
|
Create a branch from the specified source (another branch or repository). If |
|
Create a local working copy from a remote branch. |
Making Changes
|
Add a new file to version control. |
|
Add all unversioned files in the current directory. |
|
Remove a file from version control. |
|
Rename a file and track the rename in version control. |
|
Show the status of the working tree (modified, added, removed files). |
Committing and Pushing
|
Commit changes to the local branch with a descriptive message. |
|
Push committed changes to a remote branch. |
|
Pull changes from the parent branch into the current branch, merging automatically if possible. |
Branch Management and Inspection
Branch Information
|
Display information about the current branch, including the parent branch. |
|
Show the commit history of the current branch. |
|
List the revisions in a branch. |
Merging and Conflicts
|
Merge changes from |
|
Mark conflicts as resolved after manually editing the conflicted files. |
|
Commit the merged changes, including conflict resolutions. |
Working with Tags
|
Create a tag at the current revision. |
|
List available tags in the branch. |
|
Checkout the branch at a specific tag. |
Advanced Operations
Ignoring Files
Create a Example:
|
Shelving Changes
|
Shelve (stash) current changes. It stores the uncommitted changes. |
|
Unshelve the last shelved changes. |
|
List all shelved change sets. |
Revert
|
Revert changes in a specific file to the last committed version. |
|
Revert all uncommitted changes in the working directory. |
Remote Repositories
Working with Remote Branches
|
Pull changes from a remote branch into the current branch. |
|
Push changes to a remote branch. |
|
Update the local branch with the latest changes from the parent branch. Similar to |
Creating and Sharing Bundles
|
Create a bundle file containing the changesets in the branch. Useful for transferring changes without direct network access. |
|
Apply a bundle file to the current branch, integrating the changesets. |