【问题标题】:whenever I open gitbash I get the error "bash: /c/Users/aditya royal/git-prompt.sh: No such file or directory"每当我打开 gitbash 时,我都会收到错误“bash:/c/Users/aditya royal/git-prompt.sh:没有这样的文件或目录”
【发布时间】:2017-06-22 05:54:30
【问题描述】:

确切的错误是:

bash: /c/Users/aditya royal/git-prompt.sh: No such file or directory

这个命令是什么意思以及如何摆脱它?

【问题讨论】:

  • 你的意思是一个错误...

标签: terminal git-bash


【解决方案1】:

检查您的/c/Users/aditya royal/.bashrc

它应该包含一个. ~/git-prompt.sh 行。

检查删除此行是否可以避免错误消息。

在“Git in Other Environments - Git in Bash”查看更多信息

git/git/contrib/completion/git-prompt.sh 中的 cmets 解释了此文件的用途,以及应如何正确激活它。

【讨论】:

    猜你喜欢
    • 2021-07-18
    • 2019-10-17
    • 2012-02-27
    • 2020-02-23
    • 1970-01-01
    • 2016-02-17
    • 1970-01-01
    • 2021-04-29
    • 2022-08-13
    相关资源
    最近更新 更多