Ubuntu logo

Trophies

Recent Collectors

Trophy Information:
  • You have uploaded your first branch to Launchpad
Getting Help:
  • #ubuntu-devel on Freenode

A core part of Launchpad is the ability to host different directories of code. These directories are called branches and we use the Bazaar version control system to manage them. We can use these branches to share contributions and to propose improvements and changes to other branches and projects.

This trophy is awarded when you have created and uploaded your very first branch. We will help you get started right away!

It is recommended that you read a quick primer on how version control works. See the Further Reading section below for some helpful links

How to achieve this trophy

  1. You first need to create some code that you want to upload to Launchpad. We are going to presume you have a directory with code in it that you want to use.
  2. Load a terminal and change directories to the directory with the branch in it (e.g. cd mydir).
  3. We first need to initialize the directory so it can be used in bazaar. This is as simple as running bzr init. Now we are tracking this directory with Bazaar.
  4. We now need to add the files in the directory to Bazaar so that it tracks changes. Do this by running bzr add. Whenever you add new files be sure to run bzr add again.
  5. Whenever you change anything in the directory (such as editing code), you need to commit the changes. Do this by running bzr commit. A text editor will open where you can enter the changes (if your default text editor is Nano, save your changes with Ctrl-O and then Ctrl-X).
  6. We are now ready to upload your branch to Launchpad. This is known as pushing a branch. To do this type bzr push lp:~/+junk/ (for example: bzr push lp:~bob/+junk/my-first-branch). Please note your branch name can be anything; it does not need to be the same name as the directory with your code in it.
  7. You can now go to your Launchpad profile, click Code and see the branch.

Tips and Tricks:

  • If you want to grab a branch of another project on Launchpad (e.g. ubuntu-community-accomplishments, run bzr branch lp:ubuntu-community-accomplishments. You can then add your own modified version of this branch by using the project name in the push address (e.g. bzr push lp:~bob/ubuntu-community-accomplishments/my-first-branch.

Pitfalls To Avoid:

  • Never upload code you don't own or illegal content to Launchpad.