egit for eclipse:如何将现有项目放入我的好友存储库的克隆中?

发布于 2024-12-02 02:35:50 字数 257 浏览 2 评论 0原文

我的朋友给了我他的 git 地址,用于我们将要从事的项目。在 Eclipse 中,我使用 egit 克隆了他的分支。

现在,在我的 Git 视图中,我拥有了自己为现有项目创建的存储库。我希望这个现有项目位于我的好友分支上,这样我们就可以检查它并将其放入我们的存储库中。

不幸的是,我使用 Windows 来做这件事,因为我们正在开发一款游戏,而我负责所有的美术和制作工作。除了编程之外还有动画。我在命令行上感觉比使用这个插件更舒服。

非常感谢任何帮助!

My buddy gave me his git address for the project we are going to work on. In Eclipse using egit I cloned his branch.

So now in my Git view I have my own repository I created of an existing project. I want this existing project to be on my buddies branch so we can both check it out and have it in our repo.

Unfortunately I am using Windows to do this because we are developing a game and I do all of the art & animation in addition to programming. I would feel much more comfortable on the cmd line than using this plugin..

Any help is much appreciated!

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

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

发布评论

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

评论(1

私野 2024-12-09 02:35:50

回购和分支的概念有很大不同。
如果您有我们好友的存储库的克隆,您可以在一个名为您好友使用的分支(默认为“master”,如果他没有创建任何其他分支)的分支上工作,以及您想要的一切推送将被添加/合并到远程存储库中的远程分支。

有关 Egit 的更多信息,请参阅“Git with Eclipse (EGit) - 教程” ,并检查 yuo 是否可以推送至少一个文件,以便您的同事能够从远程存储库中拉取并直接在他的分支中查看。

The notion of repo and branch are quite different.
If you have a clone of our buddy's repo, you can work on a branch named like the one your buddy uses (by default 'master' if he hadn't created any other), and everything you will push will be added/merged to the remote branch in the remote repo.

For more on Egit, see this "Git with Eclipse (EGit) - Tutorial", and check if yuo can push at least one file, that your colleague will be able to pull from the remote repo and see directly in his branch.

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