Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add remote repository URL in Bazzar?

I am a git user but now I need to work on a project that is hosted on launchpad.

I noticed that git and bzr are similar but apparently have some confusing differences.

In git when you clone a remote repo the local copy is automatically hooked to the remote repo url. Apparently this is not the case in Bzr.

So how do I add the remote URL in bzr? In git I would do something like this:

git remote add origin [email protected]:bar/foo.git
like image 440
Francisco Luz Avatar asked Mar 29 '13 03:03

Francisco Luz


1 Answers

When you use bzr branch lp:project that sets the parent branch for the local repo to the URL you specified. bzr pull will automatically use the parent branch, but bzr push requires that you specify the parent if you want to push to the parent, like so: bzr push :parent. You can add the --remember option to the push command to set the push branch so that you don't have to specify the :parent every time. You can see what the parent, push and pull branches are for your local repo using the bzr info command.

like image 155
dOxxx Avatar answered Sep 27 '22 22:09

dOxxx