I have to change the project name and the package name, and I want to avoid breaking the git version control (which is exactly what the management suggests: "just create a new project, we cannot be hostages to git").
It was easy to refactor it under Eclipse (right mouse click -- refactor -- rename), but how do I tell git that the directory names have changed?
$ cd src/com
$ ls
newname
$ git mv oldname newname
fatal: bad source, source=src/com/oldname, destination=src/com/newname/oldname
$ git mv -f oldname newname
fatal: bad source, source=src/com/oldname, destination=src/com/newname/oldname