In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the .submission plug-in in IntelliJ IDEA to ignore unnecessary files. I hope you will get something after reading this article. Let's discuss it together.
Recently, I learned Git, and the IDE I used is IntelliJ IDEA. I found that when IDEA submits the project to the local warehouse, it will also submit the contents of the .idea folder, which contains some project configuration information, including history, version control information and so on. You don't have to upload it to Git.
At this point, you need to write .gitignore files to ignore submitting these files. There is a plug-in in IDEA. Clients can do this for us.
Let's take a look at how to install it.
Click File- > Settings
Find Plugins in the left menu and click Browse repositories.
Search .browse, click Install, and you can use it happily after installation, but you have to restart IDEA before that.
However, the above method may report an error when starting after installing IDEA. No, no, no. ("∠") _ Don't hit me, I don't know why. So here's planB: https://plugins.jetbrains.com/idea/plugin/7495-ignore.
Go to this website to download the compressed package and choose Install plugin from disk.
After rebooting, you can really use it!
Right-click on the project-> New-> .ignore file-> .gitignore file (Git)
Select Example user template first. If you have anything to filter later, you can add it yourself. ~ finally, click Generate to generate.
Then you will find that the ignored file name has turned gray. You can submit the code happily again.
You can also right-click the file to add it to the ignored list.
Here are some matching rules ignored by the .gitignore file:
* .a # ignores all files ending with .a! lib.a # except lib.a / TODO # ignores only TODO files in the project root directory, excluding subdir/TODObuild/ # ignores all files in the build/ directory doc/*.txt # ignores doc/notes.txt but does not include doc/server/arch.txt
Gitignore can only ignore files that were not originally track, and modifying .gitignore is invalid if some files have been included in version management. The solution is to delete the local cache (change it to a non-track state), and then submit:
Enter:
Git rm-r-cached filePath git commit-m "remove xx"
Or:
Git rm-r-cached. Git add. Git commit-m "update .gitignore"
To explain the next few parameters-r is to delete the folder and its subdirectories-cached is to delete the files in the temporary storage area without deleting the files in the workspace, the first is to delete a file, and the second method is to delete all the files in the temporary storage area and add them again, which is equivalent to an update.
Example of .gitignore file in PS:IDEA
# Created by. Ideal support plugin (hsz.mobi) # Maven template target/ pom.xml.tag pom.xml.releaseBackup pom.xml.versionsBackup pom.xml.next release.properties dependency-reduced-pom.xml buildNumber.properties .mvn / timing.properties .idea / # # File-based project format: * .iws * .iml * .ipr # # Plugin-specific files: # IntelliJ / out/ # mpeltonen/sbt-idea plugin. Idea _ modules/ # JIRA plugin atlassian-ide-plugin.xml # Crashlytics plugin (for Android Studio and IntelliJ) com_crashlytics_export_strings.xml crashlytics.properties crashlytics-build.properties fabric.properties finished reading this article I believe you have a certain understanding of "how to use the .submission plug-in in IntelliJ IDEA to ignore unnecessary documents". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.