I wanted to push a project from TortoiseHg to GitHub . I know that TortoiseHg is the interface for the Mercurial distributed version control system; where github works with git. But I like to use TortoiseHg (instead of TortoiseGit or GitGui) and want to save my project in GitHub.
So, I set up TortoiseHg (File> Settings> Extensions> hggit) and was able to push the test project to GitHub (after this wonderful blog). But later, when I tried to shift the C # MVC project with him, the situation changed. It starts pushing nicely, then asks for authentication, and then shows this error -

Here is what the magazine shows -
% hg push git+https://github.com/MinhasKamal/MVCPracticeWork pushing to git+https://github.com/MinhasKamal/MVCPracticeWork http authorization required for https://github.com/MinhasKamal/MVCPracticeWork/info/refs realm: GitHub searching for changes adding objects URLError: [Errno 10054] An existing connection was forcibly closed by the remote host [command returned code 255 Thu Feb 04 16:17:02 2016]
I do not understand why this error occurs. Is this a GitHub or TortoiseHG issue, or did I do something wrong? How can this be solved?
Edit 1: I can click on the repository, but only by โnot addingโ some specific directories to my repository . Is this any type of file or name that makes this error?
Edit 2: The problem happened to me again, this time with a Java project. Everything was fine until I added the * .jar file to the repository. I made a commit, but when I tried to push it on GitHub, TortoiseHg showed me the same message. I deleted * .jar, did and tried to click again, but could not.
Now I did it again (Edit 1) - I pulled the entire repository from GitHub to another folder, replaced the changed files from the current repository on my PC (did not add * .jar), committed, and pushed; This time I was successful. So this time, the * jar file was not added to the version control database, so it worked.