hg-git tutorial? [was Re: Bookmarks with hg update question]
Arne Babenhauserheide
arne_bab at web.de
Tue Jun 28 21:49:13 UTC 2016
Ethan Furman writes:
> On 06/28/2016 01:46 PM, Arne Babenhauserheide wrote:
>> Ethan Furman writes:
>
>>> Is there a good tutorial on that somewhere? I'm going to have to start
>>> interfacing with git repositories and I'm not looking forward to it.
>>
>> I don’t know any, but when contributing to Freenet on GitHub I just
>> follow this approach:
>
> Thanks for trying! But the only thing I understood was "clone a repo"
> and I don't even know how to do that part with the hg-git bridge. :(
By example (though untested — if you find problems, please write them!):
mkdir -p ~/.local/share/hgext # where I personally keep hg extensions
hg clone http://bitbucket.org/durin42/hg-git/ ~/.local/share/hgext/hg-git
echo '[extensions]' >> ~/.hgrc
echo hggit = ~/.local/share/hgext/hg-git/hggit >> ~/.hgrc
hg clone git+ssh://git@github.com/freenet/website freenet-website
cd freenet-website
hg boo add_download_button
(edit stuff)
hg ci -m "added download button"
(browse to https://github.com/freenet/website and create a fork)
echo '[paths]' >> .hg/hgrc
echo default-push = git+ssh://git@github.com/ArneBab/website >> ~/.hg/hgrc
# replace ArneBab with your name
hg push -r add_download_button
(browse to https://github.com/freenet/website and file a pull request
for the branch add_download_button)
I hope this helps.
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein
ohne es zu merken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20160628/2229af14/attachment-0001.asc>
More information about the Mercurial
mailing list