安静如鸡

  • Home
  • About Me
  • Contact Me
  • 东京女子篮球活动记录
一个博客
  1. 首页
  2. Tech
  3. 正文

git status 日文文件名乱码

2021-06-11 0人点赞 0条评论

这一长串也不知道是什么,也不敢随便往里面添加。一开始以为是Iterm2的锅,找了好多方法都不行。
后来查了记录,是git config的问题。

感谢这位日本老哥

git status の表示で、日本語のファイル名が下記のように文字化けしてしまうことがあります。

$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)

        "\343\201\202\343\201\202\343\201\202.txt"

nothing added to commit but untracked files present (use "git add" to track)
Code language: JavaScript (javascript)

このような場合は、下記のように core.quotepath 設定を false に設定します。

$ git config --global core.quotepath false
Code language: PHP (php)

これで正しく日本語のファイル名が表示されるようになります。

标签: 暂无
最后更新:2022-04-27

Ellison

什么都懂点,什么都不精。属于混吃等死,享受生活,过一天算一天的享乐主义。喜欢电影,阅读,以及游戏和美食。

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

Ellison

什么都懂点,什么都不精。属于混吃等死,享受生活,过一天算一天的享乐主义。喜欢电影,阅读,以及游戏和美食。

最新 热点 随机
最新 热点 随机
122. Best Time to Buy and Sell Stock II 16. 3Sum Closest 259. 3Sum Smaller 17. Letter Combinations of a Phone Number Unity中的相机投影矩阵以及推导 15. 3Sum
122. Best Time to Buy and Sell Stock II
【读书笔记】存在主义咖啡馆【WIP】 【Unity小Tips】如何从一个assembly访问另一个assembly的internal类 反攻 Apple Storeにアプリ認証について 【Unity小贴士】关于CinemachinVirtualCamera的 Mode Override 122. Best Time to Buy and Sell Stock II

COPYRIGHT © 2024 安静如鸡. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang