I mistakenly deleted a lot of files from my workspace, i also have a lot of modified files. How do i revert only the deleted files(and not the modified ones) in one go?
deleted: src/main/content/jcr_root/components/mega-menu/directives/dropdown.js
deleted: src/main/content/jcr_root/js/components/mega-menu/directives/sub-menu.js
deleted: src/main/content/jcr_root/js/components/mega-menu/mega-menu-module.js
deleted: src/main/content/jcr_root/js/components/mobile-menu.js
modified: src/main/content/jcr_root/js/components/product-list.js
modified: src/main/content/jcr_root/js/components/product-shipping.js
modified: src/main/content/jcr_root/js/components/reward-category.js
I tried this in one of my local feature branches: git reset HEAD \*
and then git checkout --
, but this seems to revert both deleted and modified ones.