将 GitHub 与 Eclipse 结合使用

发布于 2024-12-23 11:43:49 字数 196 浏览 2 评论 0原文

这可能是一个愚蠢的问题,但我已经下载了在 GitHub 中创建的 EGit,并且我可以使用命令行提交/推送。但是,我不知道如何将文件提交/推送到 GitHub 中的特定存储库。我可以执行 Team->share->create git repo 等,但似乎无法推送任何内容。我应该如何将 java 项目与 GitHub 上的存储库(或通常任何 Git 存储库)链接?

This is probably a stupid question but I have downloaded EGit, created in GitHub, and I am able to commit/push using the command line. However, I couldn't figure out how to commit/push files to a specific repo in GitHub. I can do Team->share->create git repo etc. but can't seem to push anything. How am I supposed to link a java project with a repo on GitHub(or generally any Git repo)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如果没结果 2024-12-30 11:43:49

您可以首先在 Github 上创建存储库,然后使用 EGit 克隆 它,然后推送就像对待任何其他存储库一样。当然,您首先需要正确设置加密密钥。

You can first create the repo on Github, then clone it with EGit and then push to it like to any other repository. Of course you first need to setup the encryption keys correctly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文