简体   繁体   中英

Start a new Java project inside an existing Git repository in Eclipse

I'm a new Eclipse user and I'm using Eclipse IDE for Java Developers, which should include a Git plugin.

I initialized a Git repository and created inside it a folder structure like:

  • folder1/
  • folder2/
  • folder3/
  • code/

Now I would like to create a new Java project inside the code folder, and see the whole repository under the Package Explore tab, and control it using the menu.

How can I do that?

To see your repository contents in project explorer, you can select your repository in the git repositories view and choose import projects... import as a general project and choose the top level directory... To create a java project inside your repository, you will first need to create the java project and then right click your project, choose team->share and select the location in your git repo. Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM