powershell使用git指令,中文出现乱码

21次阅读
没有评论
powershell使用git指令,中文出现乱码
(base) PS D:\files\note\my_note> git status
On branch main
Your branch is behind 'origin/main' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   "\350\247\206\351\242\221/\350\277\233\345\272\246.md"

no changes added to commit (use "git add" and/or "git commit -a")

解决办法

git config --global core.quotepath false
git config --global i18n.commitEncoding utf-8
git config --global i18n.logOutputEncoding utf-8
powershell使用git指令,中文出现乱码

正文完
 0
评论(没有评论)
验证码