Git character encoding with Spanish characters Git character encoding with Spanish characters git git

Git character encoding with Spanish characters


This should solve the problem

git config core.quotepath false

From man git-config(1) for core.quotepath:

The commands that output paths (e.g. ls-files, diff), when not given the -z option, will quote “unusual” characters in the pathname by enclosing the pathname in a double-quote pair and with backslashes the same way strings in C source code are quoted. If this variable is set to false, the bytes higher than 0×80 are not quoted but output as verbatim. Note that double quote, backslash and control characters are always quoted without -z regardless of the setting of this variable.


You could also use git clean (probably git clean -d -f but consult git manual first!) command to remove untracked files - this is the reason for error message "error: Your local changes ....".

Because of the encoding problems, Git probably already created a file with a bad filename and although the whole (pull/push?) operation was rejected, the already created file remained in the destination.