简体   繁体   中英

How to pull or push a project using TortoiseHg to GitHub repository?

Recently, I have learned about version control systems (like- Git & Mercurial) and fell in love for them. I have checked TortoiseHg, TortoiseGit, EGit, Git-Bash, Git-Gui and SourceTree. I also have signed up in GitHub and Bitbucket; and learned about- how open-source & commercial projects are hosted there.

Now, I wish to upload my projects online too. But the problem is- I want to use TortoiseHg in my PC (cause, it is simply wonderful!), and keep my projects in GitHub . I have browsed on internet and came to know about converting Mercurial repository to Git, but I don't know, it seemed complex to me. Is there any easy way to do this?

Actually, I don't want to use 3rd party software; but if there is really no other way out, I am willing to try that option too.

I also fell into the same problem. And thanks to the TortoiseHg developers, they created a super simple extension for this ( hggit ). You will not even feel, that you are working with two different version control systems.

First, go to: File > Settings > Extensions , and check hggit -

在此输入图像描述


Now, for pulling or pushing a project all you have to do is to put a git+ prefix before the repository url -

在此输入图像描述

That is all you have to do! Now clone, pull, push; you won't have to worry about any thing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM