Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to handle Asian characters in file names in Git on OS X
    text
    copied!<p>I'm on US-English OS&nbsp;X 10.6.4 and try to store files with Asian characters in its name in a Git repository.</p> <p>OK, let's create such a file in a Git working tree:</p> <pre><code>$ touch どうもありがとうミスターロボット.txt </code></pre> <p>Git is showing it as octal-escaped UTF-8 form:</p> <pre><code>$ git version git version 1.7.3.1 $ git status # On branch master # # Initial commit # # Untracked files: # (use "git add &lt;file&gt;..." to include in what will be committed) # # "\343\201\250\343\202\231\343\201\206\343\202\202\343\201\202\343\202\212\343\201\213\343\202\231\343\201\250\343\201\206\343\203\237\343\202\271\343\202\277\343\203\274\343\203\255\343\203\233\343\202\231\343\203\203\343\203\210.txt" nothing added to commit but untracked files present (use "git add" to track) </code></pre> <p>Unfortunately, I'm not able to add it to the Git repository:</p> <pre><code>$ git add どうもありがとうミスターロボット.txt $ git status # On branch master # # Initial commit # # Untracked files: # (use "git add &lt;file&gt;..." to include in what will be committed) # # "\343\201\250\343\202\231\343\201\206\343\202\202\343\201\202\343\202\212\343\201\213\343\202\231\343\201\250\343\201\206\343\203\237\343\202\271\343\202\277\343\203\274\343\203\255\343\203\233\343\202\231\343\203\203\343\203\210.txt" nothing added to commit but untracked files present (use "git add" to track) </code></pre> <p>Git simply ignored this file.</p> <p>Using wildcards work:</p> <pre><code>$ git add *.txt $ git status # On branch master # # Initial commit # # Changes to be committed: # (use "git rm --cached &lt;file&gt;..." to unstage) # # new file: "\343\201\250\343\202\231\343\201\206\343\202\202\343\201\202\343\202\212\343\201\213\343\202\231\343\201\250\343\201\206\343\203\237\343\202\271\343\202\277\343\203\274\343\203\255\343\203\233\343\202\231\343\203\203\343\203\210.txt" # </code></pre> <p>but I want to invoke the Git command from an application for a specific file name. I don't have the option to invent wildcard patterns which match exactly this file, but no one else.</p> <p>Is this a known bug of Git or me not using Git correctly?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload