intellij-idea

How to delete only selected files in commit pane


How can only selected files be deleted in the commit pane? Right clicking on the changelist heading and selecting 'delete' wants to delete all files.

Deleting the files individually or deleting them in other parts of the ui is not so convenient especially when there is a large number of dirty files and some should be kept.

commit pane deleting


Solution

  • 3 ways to delete specific selected files in the commit pane:

    1. You can select all elements (ctrl/cmd + A) and then hold ctrl/cmd button and click with your cursor on the file that you want to exclude from that list. You can then right click on any selected file in the list to apply actions to all selected files.

    2. Just select a specific .blueprint and push the delete button on the keyboard (or with context menu on right click). On your screenshot, you are selecting a whole changelist.

    3. For multiple deletions except one, you can create a new changelist. Add all files to delete there and then delete.

    enter image description here

    enter image description here