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 中文亂碼解決


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM