sh __git_ps1 command not found windows git-bash报错

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