Git Status 中文乱码解决

现象:

jb@H39:~/doc$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

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

    ".#38\344\270\212\347\232\204\350\231\232\346\213\237\346\234\272"
    ".#debconf: unable to initialize frontend: Dialog\347\232\204\350\247\243\345\206\263\346\226\271\346\263\225"
    "38\344\270\212\347\232\204\350\231\232\346\213\237\346\234\272"
    "38\344\270\273\347\233\256\345\275\225\344\270\213\346\226\207\344\273\266\345\244\271\350\257\264\346\230\216"
    "IP\345\210\206\351\205\215"
    Installation Manual for PANDABOARD ES REV 3.pptx
    "Ubuntu 12.04 Server \344\270\255\345\256\211\350\243\205\345\233\276\345\275\242\347\224\250\346\210\267\347\225\214\351\235\242"
    X: user not authorized to run the X server, aborting
    "android\345\260\217\347\273\204\346\213\223\346\211\221"
    "debconf: unable to initialize frontend: Dialog\347\232\204\350\247\243\345\206\263\346\226\271\346\263\225"
    "emacs\346\217\220\347\244\272debconf fontend"
    "ubuntu 12.04 LTS\345\221\275\344\273\244\350\241\214\350\256\276\347\275\256IP\345\217\212DNS"
    "ubuntu12.04\351\207\215\345\220\257\347\275\221\347\273\234"
    "\347\211\210\346\216\247\344\270\255\345\210\240\351\231\244\344\270\200\344\270\252\346\226\207\344\273\266"

中文的文件名,全是乱码

 

解决:
jb@H39:~/doc$ git config --global core.quotepath false

 

解决之后是这样的
jb@H39:~/doc$ git status
On branch master
Your branch is up-to-date with 'origin/master'.

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

    .#38上的虚拟机
    .#debconf: unable to initialize frontend: Dialog的解决方法
    38上的虚拟机
    38主目录下文件夹说明
    IP分配
    Installation Manual for PANDABOARD ES REV 3.pptx
    Ubuntu 12.04 Server 中安装图形用户界面
    X: user not authorized to run the X server, aborting
    android小组拓扑
    debconf: unable to initialize frontend: Dialog的解决方法
    emacs提示debconf fontend
    ubuntu 12.04 LTS命令行设置IP及DNS
    ubuntu12.04重启网络
    版控中删除一个文件

nothing added to commit but untracked files present (use "git add" to track)
jb@H39:~/doc$

 

参考:

Git Status 中文乱码解决

转载于:https://www.cnblogs.com/vipzrx/p/3488717.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在Android Studio中,当你查看git历史记录时,可能会遇到中文乱码的问题。这个问题通常是由于编码方式不匹配导致的。在你的引用中,提到了一种解决方法,可以尝试一下。 首先,打开Android Studio并点击"git",然后选择"Log Main"来查看git的历史记录。如果你发现其中一些中文commit和git user_name显示乱码,那么问题很可能是由于编码方式不正确引起的。 根据引用中提到的解决办法,在Stack Overflow上有一个简单的解决方案。这个解决方案建议将Android Studio的编码方式更改为UTF-8。 你可以按照以下步骤进行操作: 1. 在Android Studio中,点击"File"菜单,然后选择"Settings"。 2. 在设置窗口中,选择"Editor",然后选择"File Encodings"。 3. 在"Global Encoding"和"Project Encoding"下拉菜单中,选择"UTF-8"作为编码方式。 4. 点击"OK"保存更改。 通过更改Android Studio的编码方式为UTF-8,可以解决git历史记录中显示中文乱码的问题。这种更改可以确保Android Studio正确地读取和显示中文字符。 总结一下,要解决Android Studio中git显示中文乱码的问题,你可以通过更改Android Studio的编码方式为UTF-8来解决。这样可以确保正确读取和显示中文字符。希望这个解决方案对你有帮助!如果你还有其他问题,请随时提问。 - 引用来源: Android Studio git显示中文乱码问题 - 引用来源: Android Studio 3.0之后git log命令查看历史记录乱码问题解决方法 - 引用来源: Android Studio编码方式设置为UTF-8解决git显示中文乱码问题

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值