egit for eclipse:如何将现有项目放入我的好友存储库的克隆中?
我的朋友给了我他的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回购和分支的概念有很大不同。
如果您有我们好友的存储库的克隆,您可以在一个名为您好友使用的分支(默认为“
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.