Git thinks this file is an entirely new file. (Git also thinks all of your .java files you edited in your project are entirely new files). This is because you moved the original code into a directory named tmp, then worked on copies of these files in your proper package directory. This confuses git and makes it think that the files you worked on were entirely newly created files, rather than edited versions of perviously existing files.

Rather than backing up the old code in its own directory in your project, you should just edit the files directly, without keeping backups, and trust the robustness of git to be able to bring back old versions of code from previous commits if you need it.