I use TortoiseSVN. I don’t want to submit the .idea folder every time I submit it to svn. I don’t need to list it and the server does not need to save it. Because it is a file of the compiler, when multiple people maintain the project, the modification will always be displayed. The best way to avoid similar problems is to add reference files to the project’s ignore list. This way it will not appear in the submit dialog.
One, method one
1. Right-click the blank space of the folder TortoiseSVN → Properties to open
2、New → Other
3. The value of the global-ignores attribute, that is, the file that needs to be ignored, click OK
4. Submit the svn directory attribute so that the .idea file will be ignored next time you submit
5. Cancel the ignored file and select Rmove, and you can see the idea file after submitting it
Two, method two
1. Right-click a file or directory that has not been added to version control, and select TortoiseSVN → Add to Ignore List → .idea from the pop-up menu
2. After submitting to svn, the .idea file will not appear after the next submission
3. Cancel Ignore Right mouse button TortoiseSVN →Remove from Ignore List→ .idea
4. You can see it when you submit
Four, ignore files
For example: the configuration file, log file, compilation directory, packaging directory, editor backup directory of idea or eclipse can be ignored.
The rules are as follows:
.idea
*.iml
.settings
.project
.classpath
target
out
bin
classes
*.bak
*.log
Five, the difference between svn:ignore and global-ignores:
svn:ignore: only valid for the current directory, not for subdirectories;
svn:global-ignores: will have a recursive effect on subdirectories;
6. If the modification is wrong, you can use Revert to restore to the server version