search

Home  >  Q&A  >  body text

git - Does anyone know how to solve the problem that sourceTree's local preview of workspace files displays garbled Chinese characters?

When sourceTree previews the code in the workspace, the Chinese characters become garbled
After committing and pushing to the remote warehouse, when previewing the file in the remote warehouse, the Chinese version shows UTF-8. How can I fix my local sourceTree code?

phpcn_u1582phpcn_u15822812 days ago1394

reply all(1)I'll reply

  • 高洛峰

    高洛峰2017-05-02 09:36:34

    It has nothing to do with Source Tree. This is a problem with git's quote behavior.

    Just change the global config:
    git config --global core.quotepath false

    reply
    0
  • Cancelreply