`

How to use git in eclipse ?

阅读更多

when we use git in eclipse, when we commit the project ,sometimes will ignore the .project,.classpath and etc othe files . but when we import the project from the git repo ,the project will not import as an general java project. how to solve this problem?

 

first, git clone the repo from remote git server,in this project there is no .project , .classpath and other java project related file in eclipse.

second, import the project from local git repo.use as follow figures .

if you import success,the project will be look like as the follow figure:

 third,at this time,the project is not a real java project ,because there project configuration tell eclipse how build it ,now we should config the project's configuration. selected the project, right click & select properties->Project Facets->convert to faceted form,when you finished these steps,the dialog will look like as follows:

 

and click the 'ok' button to confirm the project configuration. when finishend the project will generator .project,.settings,.classpath and other the project related configuration file.now you can build & run your 

project as usual.

  • 大小: 55.7 KB
  • 大小: 48.9 KB
  • 大小: 15.5 KB
  • 大小: 120.8 KB
  • 大小: 19.7 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics