How to import a local GIT/Maven project/folder into eclipse?

So I did git clone to get a maven project from a remote git repository. Great! I have been working in the command line, doing git pull, commit, etc. Great! Now I want to import this project into eclipse and be able to use git inside eclipse through the installed egit. So I did a:

mvn eclipse:eclipse -Dwtpversion=2.0

And after that I am able to import the project into eclipse through the regular:

  • What does exactly fetch does in eclipse git (EGIT)?
  • Multiple Android projects with same GIT submodule
  • Why is my git file history lost after performing a move refactor in eclipse?
  • Eclipse and EGit: How to easily review changes to ALL modified files before committing to *local* repository
  • funny refname error when creating a new remote branch
  • How can I compare two revisions in git in Eclipse?
  • Import -> General -> Existing Projects into Workspace
    

    But the GIT options do not appear under Team !!! 🙁 🙁 🙁

    How do I import this project and have the git options at the same time?

  • what are the different repository format versions (for the core.repositoryFormatVersion setting) in git?
  • How do I create a git repo on my shared hostgator?
  • Run shell script from python with permissions
  • Git: Stage into Commit, what is the right workflow?
  • How do I execute a Git command without being on the repository folder?
  • Git Merge and Fixing Mixed Spaces and Tabs with two Branches
  • 2 Solutions collect form web for “How to import a local GIT/Maven project/folder into eclipse?”

    First, what you want to do is import the project as a Maven project directly. Then you don’t have to do all the random command line stuff, plus you have the Maven integration in Eclipse with your dependencies and pom.xml kept up to date. (You need m2e installed for this.) Go to Import and select ‘Existing Maven Projects’:

    enter image description here

    Then, what you should do is enable eGit on the project. Right click the root of the project and select “Share Project” under “Teams”.

    enter image description here

    Select Git and it will tell you that you can use the existing repo. Voila, you’re done.

    enter image description here

    Team > Share Project -> select the git project.

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