[英]Getting started with Eclipse + EGit - confused
I am used to using Eclipse with SVN and CVS.我习惯于将 Eclipse 与 SVN 和 CVS 一起使用。
Now I want to use GIT via EGIT.现在我想通过 EGIT 使用 GIT。
The goal is to have a local repository, not in the eclipse work-space, that my changes go into.目标是拥有一个本地存储库,而不是在 eclipse 工作空间中,我将 go 更改为。 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).
这样,我可以进行更改、提交它们,并拥有一个包含我可以备份的更改的存储库(至少,这就是它在 SVN 中的工作方式)。
Following the user's guide, I find it creates the repository within my Eclipse project in the workspace, which is recommended against.按照用户指南,我发现它在我的 Eclipse 项目中创建了存储库,建议不要这样做。 What am I missing?
我错过了什么?
Steps:脚步:
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.您可以在 EGit 的一个 repo 下创建多个项目,请参阅http://wiki.eclipse.org/EGit/User_Guide#Creating_a_Git_Repository_for_multiple_Projects在这种情况下,EGit 会自动完成。
You can also use the Git Repository view to create an empty git repo outside of the workspace.您还可以使用 Git 存储库视图在工作区外创建一个空的 git 存储库。 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.
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.
Since:自从:
create project form existing source
": the .project
and .classpath
will be created in the parent directory of the directory you will select as containing the sources) create project form existing source
”: .project
和.classpath
将在您将 select 包含源的目录的父目录中创建).git
where the .project
and .classpath
are created .git
在其中创建.project
和.classpath
you will have a repo outside of the Eclipse workspace.您将在 Eclipse 工作区之外拥有一个存储库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.