开始使用Eclipse + EGit - 困惑 [英] Getting started with Eclipse + EGit - confused
问题描述
现在我想通过EGIT使用GIT。
目标是在本地存储库中,而不是在eclipse工作空间中进行更改。这样,我可以进行更改,提交它们,并具有可以备份的更改的存储库(至少在SVN中它的工作原理)。
按照用户指南,我发现它在工作空间中的Eclipse项目中创建存储库,这是建议的。我缺少什么?
步骤:
- 在Eclipse中创建一个Java项目(测试)
- 在项目右键单击 - >团队 - >共享项目 - > Git
- ...下一步 - 显示配置Git存储库面板
...它将允许我创建的唯一存储库是项目内。
Huh?
您可以在EGit中的一个repo下创建多个项目,请参阅 http://wiki.eclipse.org/EGit/User_Guide#Creating_a_Git_Repository_for_multiple_Projects 在这种情况下,EGit将自动执行。
您还可以使用Git Repository视图在工作区外创建一个空git repo。请参阅 http://wiki.eclipse.org/EGit/User_Guide#Creating_a_Repository 之后,您可以创建新的Java项目并指定外部git repo子目录作为其位置。
I am used to using Eclipse with SVN and CVS.
Now I want to use GIT via EGIT.
The goal is to have a local repository, not in the eclipse work-space, that my changes go into. That way, I can make changes, commit them, and have a repository with the changes that I can back up (at least, that's how it works in SVN).
Following the user's guide, I find it creates the repository within my Eclipse project in the workspace, which is recommended against. What am I missing?
Steps:
- Create a Java project in Eclipse (Test)
- On Project right click->Team->Share Project->Git
- ...Next - shows "Configure Git Repository" Panel ...the only repository it will let me create is inside the project.
Huh?
You can create multiple projects under one repo in EGit, see http://wiki.eclipse.org/EGit/User_Guide#Creating_a_Git_Repository_for_multiple_Projects In that case, EGit will do it automatically.
You can also use the Git Repository view to create an empty git repo outside of the workspace. See http://wiki.eclipse.org/EGit/User_Guide#Creating_a_Repository After that, you can create new java projects and specify the external git repo subdirectory as their location.
这篇关于开始使用Eclipse + EGit - 困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!