hg-git woes
Cody Scott
cody at perspexis.com
Tue Mar 21 16:10:54 UTC 2017
Here is how to create a keypair and add the public key to GitHub
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
Then you will want to push to the SSH destination. You can get this by
clicking clone on the GitHub repo and then selecting SSH.
For example
hg push git at github.com:Siecje/qml-testing.git -B master
On Tue, Mar 21, 2017 at 12:07 PM, Bob Hood <bhood2 at comcast.net> wrote:
> Thanks for the reply, Cody.
>
> On 3/21/2017 9:45 AM, Cody Scott wrote:
>
> Have you tried just pushing the bookmark? (eg. `hg push -B master`)
>
>
> I just tried your suggestion ('hg push -B master'), but unfortunately I
> get the same 'forcibly closed' result.
>
>
> I have only had luck when I add a remote with ssh:// which requires adding
> your public key to GitHub.
>
>
> Can you point me to a link that documents that?
>
>
>
>
>
> On Tue, Mar 21, 2017 at 11:23 AM, Bob Hood <bhood2 at comcast.net> wrote:
>
>> I've been using the hg-git extension to push local project commits up to
>> github.com. With single commits, it is usually hit-or-miss whether or
>> not the push succeeds. If I continue to try, it usually happens.
>>
>> Now, I've collected several commits (I should have pushed them
>> individually, I know), and no amount of pushing or rebooting of my machine
>> (to reset the NIC) is succeeding:
>>
>> [default] $ hg push --debug
>> pushing to https://github.com/xxxxxx/xxxxxxxx.git
>> finding hg commits to export
>> keyring: base url: https://github.com/xxxxxx/xxxxxxxx.git/info/refs, url
>> user: , url pwd:
>> keyring: Checking for hgrc info about url https://github.com/xxxxxx/xxxx
>> xxxx.git/info/refs, user None
>> keyring: Password url: https://github.com, user: xxxxxxx, password:
>> (prefix: github.com)
>> keyring: looking for password (user xxxxxxx, url https://github.com)
>> keyring: Password found in keyring
>> searching for changes
>> 5 commits found
>> list of commits:
>> 04a76d010d97a7605bee45b8c618edd5b2b638d5
>> a888da78bc0af97c9a277400b45f109e4bd57288
>> 8b01bcb139d763a8f722b19921180082e5efd540
>> 09d5c45353f8105879c6f04f8286d5fffd0c19cb
>> d9d3ccf12b3b0fe0f28c9a5decf2d21a80236adc
>> adding objects
>> *abort: error: An existing connection was forcibly closed by the remote
>> host*
>>
>> I'm using Mercurial version 4.1.1 under Windows (installed with
>> TortoiseHG), with the "hggit=" and "hgext.bookmarks=" enabled in my main
>> mercurial.ini file.
>>
>> Can anybody suggest something else I can try?
>>
>>
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at mercurial-scm.org
>> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20170321/2d500bdf/attachment-0002.html>
More information about the Mercurial
mailing list