How to make a bookmark 'featureA' on branches/nightly?
$ git co -b featureA remotes/origin/branches/nightly
$ echo featureA >> file
$ git ci -a -m 'implement A'
$ git push origin featureA
results in:
$ hg heads -r -1
changeset: 3:5f2e9010bd58
bookmark: featureA
tag: tip
user: user <user@mail.com>
date: Wed Mar 04 19:02:11 2015 +0200
summary: implement A
Notice there is no 'branch' field, i. e. it's 'default'.
Same thing happens if you branch off from a named branch:
$ git co -b branches/nightly remotes/origin/branches/nightly
$ echo featureA-2 >> file
$ git ci -a -m 'implement A'
$ git push origin branches/nightly # this works as expected
$ git co -b featureB
$ echo featureB >> file
$ git ci -a -m 'implement B'
$ git push origin featureB branches/nightly # bookmark featureB has no named branch
I can't seem to figure out how to push git branches based on mercurial's named branches.
E. g. suppose we have freshly cloned a mercurial repo with several branches:
How to make a bookmark 'featureA' on branches/nightly?
results in:
Notice there is no 'branch' field, i. e. it's 'default'.
Same thing happens if you branch off from a named branch: