Eclipse git将子项目移动到repository的根目录
我正在使用GIT存储库签入我的更改。在存储库中,我有一个项目,在该项目下,我正在签入所有内容。但是当使用jbosstools在eclipse中配置“OpenShift”时,它说Eclipse git将子项目移动到repository的根目录,eclipse,git,bitbucket,git-branch,Eclipse,Git,Bitbucket,Git Branch,我正在使用GIT存储库签入我的更改。在存储库中,我有一个项目,在该项目下,我正在签入所有内容。但是当使用jbosstools在eclipse中配置“OpenShift”时,它说 The project <projectname> is not at the root of your git repository and appears to be a sub-project. Please copy your project to it's own repository.
The project <projectname> is not at the root of your git repository
and appears to be a sub-project. Please copy your project to it's own repository.
项目不在git存储库的根目录下
似乎是一个子项目。请将您的项目复制到它自己的存储库中。
如何使用eclipse将项目移动到根目录?不使用命令提示符。虽然问题很老,但希望添加答案,以便帮助他人 我遇到过类似的问题,通过以下步骤解决
示例:
-工作空间
|-项目1
|-项目2 如果要部署project1,请不要选择Workspace,而是选择prject1
希望有帮助。这看起来很乱,如果不使用命令提示符,我可能不会碰它。好的,然后使用命令提示符告诉我..:(…你吓坏我了:(打开Git控制台,将目录更改为项目的根目录,然后键入
Git status
。它说什么?我很久没有“接触”eclipse了,但我记得多年前它将项目的Git存储库存储在项目目录之外。请检查根目录和Git repo目录。