sh __git_ps1 command not found windows git-bash报错 裘信宏 2020-01-20 3,612 阅读1分钟 找到etc目录下的git-prompt.sh路径 /etc/profile.d/git-prompt.sh 在 /etc/bash.bashrc 中 export PS1之前加入 source /etc/profile.d/git-prompt.sh