I have been trying to get gitHub and Egit to cooperate, with no success. I installed github's software bundle and made an SSH key that way, but Egit gives me no prompt for the passphrase, and it gives me this error:
Cannot get remote repository refs.
Reason: ssh://[email protected]:22: passphrase for C:\Documents and Settings\User\.ssh\id_rsa
I have these settings in the push menu:
URI: ssh://[email protected]/YoungMaker/<projectName>.git
host: github.com
Repository path: /YoungMaker/<projectName>.git
protocol: SSH
port <BLANK>
User: git
password <blank>
I also tried the GIT_SSH environment variable, and set it to C:\Documents and Settings\User.ssh, as well as plink.exe (I don't know what that is (clearly some .exe))
After trying to push from the gitHub GUI, I got this error. Its quite strange because I have the C:\Documents and Settings\User.ssh directory with a config file and an id_rsa key in it.
Pushing to [email protected]:YoungMaker/GitTester.git
error: cannot spawn C:\Documents and Settings\User\.ssh: No such file or directory
fatal: unable to fork
Eclipse EGit™ is the Git integration for Eclipse. Git is a distributed SCM, which means every developer has a full copy of all history of every revision of the code, making queries against the history very fast and versatile. The EGit project is implementing Eclipse tooling for the JGit Java implementation of Git.
Via the Eclipse IDE you can perform Git commands like staging, commit, merge, rebase, pull and push.
Old question, but for future reference:
Make sure you did setup a push remote. It worked for me when I got both the Cannot get remote repository refs-problems ("... Passphrase for..." and "Auth fail" in the "Push..." dialog).
Provided that you already:
Setup your SSH keys with Github (Window > Preferences > General > Network Connections > SSH2)
Setup your local repository (you can follow this guide for that)
Created a Github repository (same guide)
... here's how you do it:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With