Issue
I am using Netbeans8.2 IDE for java and am working on a small personal project. I use git to handle version control and push to github. For some reason, half of my files got marked for deletion in git and if I commit, they will be removed. I dont know how to un-mark them for deletion.
Solution
In NetBeans, that would be:
Team -> Git-> Revert/Recover-> Reset..
See "3.2.7 How to Reset": chose the "mixed" mode, which overwrite all changes in Index and leave changes in Working Tree.
You will need to add again the files you actually wanted part of the commit.
Answered By - VonC
Answer Checked By - Willingham (JavaFixing Volunteer)