gpt4 book ai didi

github - 如何从 Eclipse 在 Github 中推送一个新项目?

转载 作者:行者123 更新时间:2023-12-04 00:47:35 29 4
gpt4 key购买 nike

我正在尝试将我的新项目推送到最近创建的 Github 存储库中。但是有SSH身份验证问题。我不知道 key 管理,使用哪个 key 以及如何使用。在我的 github web 仪表板中,我有 2 个键。一个使用我的登录帐户,另一个使用 Github for Windows。

如何使用正确的 key 进行提交。因为这个 key 不是我的 Github 仪表板中提到的。我在 Eclipse 中创建了新的 RSA key 。用密码保存它。并将此 key 添加到我的 Github 帐户中。但它仍然向我展示了关键指纹。

有什么帮助吗?

我的 repo :https://github.com/tahirakram/Likhari

网址信息

Location URL

收到有关 SSH key 的错误

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 (来自 Lech Migdal's blog )建议:

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还要求您检查 SSH 设置。

Adding a Remote Configuration 的“ Egit User Guide”部分更好地说明了第 2 点。 :

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:



New Remote

关于github - 如何从 Eclipse 在 Github 中推送一个新项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13208868/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com