如何从Eclipse中推送Github中的新项目? [英] How to push a new project in Github from Eclipse?

查看:316
本文介绍了如何从Eclipse中推送Github中的新项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在最近创建的Github存储库中推送我的新项目。但有SSH认证问题。我不知道密钥管理,使用哪个密钥以及如何使用密钥。在我的github网页仪表板中,我有2个键。一个使用我的登录账号,一个使用Github for Windows。



如何使用正确的密钥进行提交。因为这个键不是我在Github仪表板中提到的。我在Eclipse中创建了新的RSA密钥。用密码保存。并将此密钥添加到我的Github帐户中。



有什么帮助吗?



我的回购:(来自


从理论上讲,它是没有什么不好,你按下是按钮,就完成了。



但令我惊讶的是没有是按钮: - )只有OK和Details,它们都没有导致代码被推送到sf.net。在Eclipse中切换到 Git Repositories code>perspective

  • 展开您的项目,添加新的远程存储库(我称之为sourceforge)
  • >
  • 粘贴sourceforge在您的项目网站上提供的URI和正确的密码(是的,这次它会起作用)
  • 现在Eclipse会问你是否信任RSA密钥指纹,并将其添加到 known_hosts 文件

  • 干运行(should work), Save


  • 此页还会要求您检查您的SSH设置。



    点2可以通过添加远程配置 iki.eclipse.org/EGit/User_Guiderel =noreferrer> Egit User Guide :


    远程节点上执行上下文菜单操作。

    启动向导,询问新配置的名称以及是否配置 Fetch 推送或两者:


    I am trying to push my new project in recently created Github repository. But having SSH authentication issue. I don't know the key management, as which key is to used and how. In my github web dashboard I have 2 keys. One with my login account and one with Github for Windows.

    How can I use the correct key for committing. Because this key is not what mentioned in my Github dashboard. I created new RSA Key in Eclipse. Saved it with Passphrase. And added this key into my Github account. But still it's showing me following key fingure print.

    Any help?

    My repos: https://github.com/tahirakram/Likhari

    URL Information

    Getting this error about SSH Keys

    解决方案

    ssh://git@github.com:22: org.eclipse.jgit.transport.CredentialItem$YesNoType:  
    The authenticity of host 'github.com' can't be established.  
    RSA key fingerprint is 16:27:ac:a5:xx:xx:xx:xx:xx:xx:a6:48.  
    Are you sure you want to continue connecting?
    

    This page (from Lech Migdal's blog ) recommends:

    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.

    1. In Eclipse switch to "Git Repositories" perspective
    2. Expand your project, add new Remote repository (I called it "sourceforge")
    3. Paste the URI that sourceforge provides on your project website and the proper password (yes, this time it will work)
    4. Now Eclipse will ask you if you trust the RSA key fingerprint and will add it to known_hosts file
    5. "Dry-Run" (should work), "Save"

    This page also ask you to check your SSH settings.

    Point 2 is better illustrated by the section "Adding a Remote Configuration" of the Egit User Guide:

    This is done using a context menu action on the "Remotes" node.
    A wizard is started asking for the name of the new configuration and whether to configure Fetch, Push, or both:

    这篇关于如何从Eclipse中推送Github中的新项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

    查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆