I am trying to rename a file in a local .git directory:
git mv MyProj/src/ts0621/foobar.c NewProjName/src/ts0629/foobar.c
Yet, git fails with:
fatal: renaming 'MyProj/src/ts0621/foobar.c' failed: No such file or directory
I could swear that I had git mv working for me when renaming a subdirectory, but for some reason a simple rename of a file doesn’t work. Why?
(I, of course, verified that the file MyProj/src/ts0621/foobar.c exists before attempting to issue this command)
Probably, because NewProjName/src/ts0629 doesn’t exist
Try