I have an android project in Eclipse. I have it under git version control. I am not using the Eclipse-built-in git manager. I'm managing git commits in command line. When I switch back and forth between branches that do/do not have certain files, I don't know how to get Eclipse to recognize these files.
I tried to drag and drop the file from my OS's file explorer into Eclipse's Package Explorer. I've also tried to use the import wizard. Both times I get a "Source is in the hierarchy of the destination" error.
So Eclipse obviously knows that the file is already in the project's folder structure. How can I get Eclipse to automatically add files to the Package Explorer every time it detects a new file (i.e. when I git checkout _____)?
I only ask because I've had this feature in other IDE's and it was great when using git.