I'm aware that I can just copy the files someplace, delete the (svn) controlled stuff and move the files back. But this seems like an easy task to automate in the IDE, so... am I missing something? Can I just "unmark" a directory so it gets deleted from VCS but kept on-disk and how?
Select an item you want to delete. Select Refactor | Safe Delete from the main or context menu or press Alt+Delete . In the dialog that opens, select necessary options and click OK. If IntelliJ IDEA encountered potential problems, it displays the Usages Detected dialog.
In IntelliJ open the Version Control Tool Window. In the Local Changes tab: create a new change list (do NOT make it active) You can add all the files you would not want to commit to this new changelist. Commit and push only the other changelist(s)
As this is a unusual use case, there is no direct way to do this. This is assuming the directory in question has indeed been committed and not just added. An added but not yet committed directory can be reverted/rollbacked.
A way you can do this within IDEA is as follows:
Your directory has now been removed from VC but is back on your file system.
Edit:
If this is a common occurrence for you, you can record this in a macro (Edit > Macros). Use the left arrow ← to move to the parent directory for step 3. You can then map the macro to a shortcut in Settings > Keymap
If you only added the directory to SVN(without commit), just Revert it and it will be unversioned.
If you already committed the directory into SVN, in Intellij:
VCS > Browse VCS Repository > Browse Subversion Repository....
It will open the repo browser, then:
right click on folder you want to delete > Delete... > Commit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With