最近学了一下github,遇到了很多问题,总结一下,希望对大家有所帮助!
github连接出现Bad file number问题时:
需要在.ssh目录下增加config配置文件,具体详情请看:http://rangercyh.blog.51cto.com/1444712/749490(参考文章)
下面这种情况就说明可以使用ssh连接github了
其他错误:由于SSH配置文件的不匹配,导致的Permission denied (publickey)及其解决方法(参考文章):http://blog.itpub.net/25851087/viewspace-1262468/
但在eclipse中却会出现下面的错误
解决方式如下:
In theory it's nothing bad, you press the "Yes" button and you're done.
But to my surprise there was no "Yes" button :-) Only "OK" and "Details", both of them didn't result in the code being pushed to the sf.net. Restart (as suggested on some sites) didn't help.
- In Eclipse switch to "
Git Repositories
" perspective - Expand your project, add
new Remote repository
(I called it "sourceforge") - Paste the URI that sourceforge provides on your project website and the proper password (yes, this time it will work)
- Now Eclipse will ask you if you trust the RSA key fingerprint and will add it to
known_hosts
file - "
Dry-Run
" (should work), "Save
"