# git-remote-hg

2 messages from 2014-01-20 to 2014-04-12. Participants: Christophe, Felipe Contreras.
Thread: https://gitlist.dev/t/35698

## Christophe, 2014-01-20 17:18

Subject: git-remote-hg
Message-ID: <20140120.181832.898588286941108442.Christophe.Troestler@umons.ac.be>
URL: https://gitlist.dev/e/20140120.181832.898588286941108442.Christophe.Troestler%40umons.ac.be

```
Hi,

I am using git-remote-hg to access to projects on bitbucket.  I can
clone the master branch fine and push to it.  I also see hg branches
as remotes/origin/branches/«branch».  However, if I create a local
branch "branches/x" and want to push it to remotes/origin/branches/x,
it gets pushed to the remote master (aka default) branch.

What is the recommended way of working with multiple branches when
interacting with a remote hg repository?

Best,
C.


P.S. The remote helper also prints many lines like:

error: Object 4a83cec050af8749b3eacc9da9b216350bb86c07 already has a mark

```

## Felipe Contreras, 2014-04-12 21:42

Subject: RE: git-remote-hg
Message-ID: <5349b34bb72db_473d1391308ac@nysa.notmuch>
URL: https://gitlist.dev/e/5349b34bb72db_473d1391308ac%40nysa.notmuch
In-Reply-To: <20140120.181832.898588286941108442.Christophe.Troestler@umons.ac.be>

```
Christophe wrote:
> I am using git-remote-hg to access to projects on bitbucket.  I can clone the
> master branch fine and push to it.  I also see hg branches as
> remotes/origin/branches/«branch».  However, if I create a local branch
> "branches/x" and want to push it to remotes/origin/branches/x, it gets pushed
> to the remote master (aka default) branch.

Which version of the script and Git are you using?

If I do `git push origin branches/test` it works fine, I can see the branch in
bitbucket.

> What is the recommended way of working with multiple branches when
> interacting with a remote hg repository?

My recommendation is to avoid them (I don't see the point of them), but they
should work.

-- 
Felipe Contreras
```
