The Java development. Gitignore file contains the views of the. Iml,.log __java

Source: Internet
Author: User
There is an open source project Https://github.com/github/gitignore is mainly used to standardize the preparation of the. gitignore files for all development projects, covering all development languages, development environments and so on. Today, I submitted a pull request to Jetbrains.gitignore, hoping to add to the document. IML,. Log two lines of code support, caused a discussion.       The submitted pull request is: https://github.com/github/gitignore/pull/2418. And jetbrains officials have given advice on whether the documents should be added to the. Gitignore, the official suggested: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839. Some of the official explanations are as follows: This format is used by the recent IDE versions by default. This is what your need to share:all the files under. Idea directory in the project root except the Workspace.xml andtasks. XML files which store user specific settings. The idea directory does not need to be shared among developers except for Workspace.xml and Tasks.xml, because these two files hold user-specific information. All the rest should be shared. So workspace.xml and Tasks.xml can write to. Gitignore, the others do not write to. Gitignore.

All. Applies files should be shared by all of the. IML module files, the can is located in different module directories (IntelliJ to IML idea), because this Some files locate different module directories.
You may consider share of the following:. iml files for the Gradle or Maven based projects, since these files would be Generated on import some. iml files in projects based on Gradle, MAVEN, because these files are generated at import time.

Gradle.xml file, the discussion gradle.xml files should not be shared.

Directory folders for user dictionaries folder (to avoid conflicts if others developer has the same name) should not be shared.

XML files under. Idea/libraries in cases they are generated from Gradle or Maven project. Idea/libraries directories should also not be shared because it are generated by Gradle and maven.
Actually read the official about. IML, I still do not understand whether or not to add. iML to. Gitignore, feeling the official explanation is rather vague. In some comments, developers suggest that for some files, you can set up a local directory where files in the local directory do not need to be shared. What do you think, sir?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.