For non-ASCII characters in file names, Git will output them in octal notation. For example:
> git ls-files
"\337.txt"
If such a byte sequence does not represent a legal encoding (for the command line's current encoding), I'm not able to enter the corresponding String on command line. How can I still invoke Git commands on these files? Obviously, using the String which is displayed by git ls-files
does not work:
> git rm "\337.txt"
fatal: pathspec '337.txt' did not match any files
Tested on Windows, with msysgit 1.7.10 (git version 1.7.10.msysgit.1)
No comments:
Post a Comment