hg-git tutorial? [was Re: Bookmarks with hg update question]

Ethan Furman ethan at stoneleaf.us
Tue Jun 28 22:11:52 UTC 2016


On 06/28/2016 02:49 PM, Arne Babenhauserheide wrote:
> Ethan Furman writes:

>> 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)

That should get me going, thanks!

--
~Ethan~




More information about the Mercurial mailing list