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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With