Skip to content

Track multiple remote bzr branches in one git repository #12

@baby-gnu

Description

@baby-gnu

Hello,

Following the @Robru reply on #8, I can not track several remote bzr branches in my git repository.

I expected the git remote url to point to a remote bzr repository, under witch I can push my branches.

I expected something like git push perso feature/something to concatenate the git config remote.perso.url with the branch name to build the bzr URL.

It could be great to be able to track several remote branches within one git repository, and do things like:

Start by a clone:

$ git clone bzr::lp:something
Cloning into 'something'...
Checking connectivity... done.

Create a test branch

$ git checkout -b test master
$ echo "Test file" > test
$ git add test
$ git commit -m "Test commit"

Create my personal bzr remote repository and push my test branch

$ git remote add perso bzr::lp:~mylogin/something
$ git push -u perso test
<push the local test branch to remote bzr::lp:~mylogin/something/test>

Merge someone else feature:

$ git remote add someoneelse bzr::lp:~someoneelse/something
$ git fetch someoneelse
$ git merge someoneelse/feature/something
$ git push perso test

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions