In "git diff", look for "\ No newline at end of file" for this problem.