hg-git repository not found - github

I would like to configure my Mercurial project to be able to push it into gitHub repository.
While using command:
hg push git+ssh://git#github.com/myusername/myproject.git
I receive a msg:
abort: repository git+ssh://git#github.com/myusername/myproject.git
not found!
I already check and establish SSH connection, and it looks ok:
Hi myusername! You've successfully authenticated, but GitHub does not
provide shell access.
my respository url copied from github (it's a fork from other open-source project): https://github.com/myusername/myproject.git
What else I should check? Why I have an information that it doesn't exist while, in fact, it does? Where can be a problem?

Thanks to rfkortekaas I found a problem with hg-git setup.
In ~/.hgrc there has to be:
[extensions]
hgext.bookmarks =
hggit =

Are you sure that you have enabled and setup the hg-git extension correctly. This error also appears if the extension is not correctly setup.
Can you try it with a local git repository to phase-out github as a possible error.

I'm not sure you can push in Git if you didn't clone your repository from a Git one before using hg-git. It seems me that hg-git manages a .git locally.

Related

Having trouble copying a github repository onto my unix machine

I am trying to copy a github repository into my "documents" folder on my macbook pro but have continually received the error message below. I am brand new to github and am using it for the odin project. Any tips or tricks to work through this obstacle? Thank you.
Collins-MacBook-Pro:~ collinremmers$ cd documents
Cj-MacBook-Pro:documents cj01$ git clone git#github.com:cjremm01/git_test.git
Cloning into 'git_test'...
/Users/cj01/.ssh/config: line 3: Bad configuration option: identifyfile
/Users/cj01/.ssh/config: terminating, 1 bad configuration options
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Try to clone it with the URL and not via SSH
git clone https://github.com/cjremm01/git_test

How to upload a selenium project on github with below mentioned error?

I have tried uplaoding my project using Git bash but getting an error.
[1]: https://i.stack.imgur.com/H1sjx.png
I've also looked at the links provided so far but I'm still getting no where.
Thanks in Advance !
You clearly seem to be very new at Git. I would HIGHLY recommend you look at a tutorial and try and understand for yourself what your problem is. With that said, here is your solution
Assuming you have properly created and committed to a local git repository, add a remote repository as such git remote add origin https://github.com/link-to-your-git-repo.git. Then push everything with git push -u origin master.
Your problem is that you have a misunderstanding of how to use the Git Bash. I highly recommend you read this at the minimum.
https://git-scm.com/book/en/v2/Getting-Started-The-Command-Line

Laravel Forge Github Repository Error

I am trying to connect my Laravel Forge (digitalocean) server to my Github repo like I've done many times in the past, however, this time it is giving an error saying
You must specify a repository to clone.
However, when I go into the command line and do a git clone of the branch and repository, it works fine. Any ideas what might cause this? I have my SSH key for Forge added to Github already.
Thanks,
I ended up deleting the site on forge and reinstalling and it works now. Not sure exactly why it wasn't recognizing the repository, but it works now.

Newbie Unable to clone repo

I've never used a VCS before and I'm attempting to set one up now.
I'm doing some Game Development with Unity3d. At first I googled how to set up VCS for Unity; and I found this: http://www.gamasutra.com/blogs/BurkayOzdemir/20130303/187697/Using_Unity3D_with_external_VCS_Mercurial__Bitbucket_step_to_step_guide.php
I followed it until it came time to clone the repository from within the hgTortoise workbench. When I hit the clone button after copying and pasting the URL to my repo from the BitBucket.org website I received an error: "Repository Git clone https:://username#bitbucket.org/username/projectName.git not found code: 255" and I do understand what an HTTP 404 error is.
Anyone who has used the internet knows it means the page could not be found.
I created this repo as private; is that why it could not find my repo?
Then I proceeded to follow the instructions at BitBucket's "BitBucket 101" help page. I installed Git, had already created a BitBucket account and repo, and the instructions which followed.
I stopped at the point where the help page said to enter some command line things in to Git Shell. I'm running Windows 8.1 and searches have shown me that particular program doesn't exist on this PC.
Am I doing this correctly? What am I doing wrong? All I need is to set up a VCS.
Git and Mercurial are 2 different distributed version control packages. They both use a command line interface. TortoiseHG (the package referred to in the step-by-step you linked to) is a GUI extension that's only used for Mercurial. (HG is the chemical symbol for Mercury, get it?!)
Bitbucket is an online repository that can host either Git or Mercurial repositories.
It looks like you created your repository on Bitbucket as a Git repo and not a Mercurial repo. Just delete the repo on Bitbucket (make sure you have a good copy of your source code) and recreate it as a Mercurial repo. Then work with TortoiseHG as instructed in the step-by-step.
The fact that it's a private repo doesn't matter. That just means it will only be visible to you (vs. everyone) and will require a password to push and pull changes via https or ssh.
Well, first of all, it seems that the tutorial that you seem to be using is based on using Mercurial instead of Git.
If you're comfortable with diving into the command line, you can download TortoiseHG, which is a Windows shell extension: http://tortoisehg.bitbucket.io/
However, there's nothing wrong with using SourceTree as well, which is a GUI-based interface for dealing with both Git and Mercurial repositories: https://www.sourcetreeapp.com/
FYI, if you downloaded Git for Windows, it should've provided you with a terminal called Git Bash that you can use for Git commands.

Eclipse can not push to Github

I have installed EGit and create a repo and push it to github using the following steps:
Step1:
Step2:
Step3:
Step4:
Step5:
Step6:
I get the following error:
Can't connect to any repository: https://github.com/mleoking/JavaGnuplotHybrid.git (https://github.com/mleoking/JavaGnuplotHybrid.git: error occurred during unpacking on the remote end: index-pack abnormal exit)
I have also tried to use ssh but it even does not allow me to pass step3. With http I can pass step3.
Thanks for help.
Found the problems by myself:
I simply deleted the git repository for my project and then create a fresh new git repository following this guide: http://wiki.eclipse.org/EGit/User_Guide/Getting_Started
And then still use the same steps, using https rather than ssl. I successfully committed it to github: https://github.com/mleoking/JavaGnuplotHybrid
I do not really know where was the problem. But eventually the above steps work.
Please use the ssh address of your repository. http is read-only.
git#github.com:mleoking/JavaGnuplotHybrid.git
On custom linux repos it could be a permissions error:
cd <path_to_git_folder.git>
chmod -R 777 *