This command works just fine:
git diff relative/path/to/file.ext
But if I use the full path, git says that the path is "outside the repository":
git diff /full/path/then/relative/path/to/file.ext
I believe git does not find the .git directory in / full, so why it does not work.
But how do I make git understand the full paths, such as subversion?
Update: git version 1.7.0.5
Update: these files are always inside my repository, and my current directory is also inside my repository! He still gives this error.
source share