git move sub project to the root of the reposotory

I am using GIT repository to check-in my changes. in repository, I have a project and under that I am checking in everything. But while configuring ‘OpenShift’ in eclipse using jbosstools, it is saying

    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. 

How can I move my project to root using eclipse? without using command prompt.

  • View previous branches in git
  • How to find out what files were changed in a git branch (not the difference between two branches)
  • fetch and checkout a remote git branch in just one command
  • Why does git fast-forward merges by default?
  • GIT: How to copy contents of one branch to other branch?
  • How should I handle database schema changes when switching branches in Rails?
  • merge branch that was created from old commit to master
  • Git listing non-existent remotes
  • One Solution collect form web for “git move sub project to the root of the reposotory”

    Though the question is quite old, would like to add the answer so that it helps someone.

    I have faced similar issue, Resolved it by using following steps,

    1. Click File -> New -> Other -> Git Repository.

    2. Browse and select your project you want to deploy.

      NOTE: do not select the folder above your project.
      Example:
      -Workspace
      |-project1
      |-project2

      And you want to deploy project1, do not select Workspace, select prject1

    3. Right click on project -> Team -> Add to index

    4. Right click on project -> Team -> Commit

    5. Now deploy the project on openshift

    hope it helps.

    Git Baby is a git and github fan, let's start git clone.