Skip to content

zsh git log 乱码 #14

@zhanzengyu

Description

@zhanzengyu

该方案是解决使用普通命令,比如 ls 显示中文文件夹没问题,但是 git log 查看 commit 信息中文乱码问题。

~/.zshrc 追加下面两行

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

然后执行 source ~/.zshrc 让配置生效即可

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions