Solve the desktop icon question mark caused by SVN

I accidentally checked out the contents of the repository directly to the desktop before, only to find that the files on the desktop have become question marks. I thought there was no big problem, just delete .svn, but after deleting all .svn The question mark is still displayed. After refreshing it many times, and restarting the computer, the question mark has not disappeared.

Then I found three methods on the Internet:
1. This is easier, you create a notepad file on the desktop, and then copy this sentence into it for /r . %%a in (.) do @if exist "%%a /.svn" rd /s /q "%%a/.svn" Then save it, and then delete the SVN information from the notepad file from the name. Bat, at this time, pay attention that the suffix is ​​not txt but bat, and then double-click this The batch file can solve the problem
2. Delete the .svn file
3. Use the SVN client tool, TortoiseSVN to set it up and it will be OK.
Right mouse button >> Settings >> Icon Overlays option You
will see several groups of options to set, cancel The hook option before Unversioned files mark parent folder as modified, >>
Status cachet option is set to None, this is OK, check your task manager, the process of TortoiseSVN is closed, refresh a few times and there will be no such situation.

I only tried the first method and it was solved, but then the problem occurred again, the first method and the second method did not solve it, and the third method was used to solve it.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326996799&siteId=291194637