如何从Eclipse中的现有Maven项目创建一个git项目? [英] How to create a git project from an existing maven project in Eclipse?
问题描述
我有一个本地maven项目。现在我想把它放到一个git仓库中。我想我首先需要创建一个本地git项目,然后将所有内容都推送到远程存储库。有没有办法在Eclipse中做到这一点?
尝试以下步骤:
<$ c $ 1)创建一个本地新的Git仓库并将其添加到这个视图
2)有3个选项:
* Import Maven Proejcts
*导入现有的项目
*导入为一般项目
这些看起来都不起作用。这应该是一个非常典型的用例。首先,你在本地创建一个maven,没有git。在某个时候,你想把它放到一个git仓库并与其他人协作。如何做到这一点?
右键点击项目,团队,共享项目... 允许您初始化项目的Git存储库。I have a local maven project. Now I want to put it into a git repository. I think I first need to create a local git project and then push all to the remote repository. Is there a way to do this in Eclipse? I have the egit plugin in Eclipse.
Tried the following step:
1) Create a local new Git repository and add it to this view
2) There are 3 options:
* Import Maven Proejcts
* Import existing proejcts
* Import as a general project
None of these seem works. This should be a very typical use case. First, you create a maven locally, without git. At some point, you want to put it into a git repository and collaborate with others. How to achieve this?
Right clicking the project, Team, Share project… allows you to initialize a Git repository for your project.
这篇关于如何从Eclipse中的现有Maven项目创建一个git项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!