terminal - 每当我打开 gitbash 时,我都会收到错误 "bash:/c/Users/aditya royal/git-prompt.sh: No such file or directory"

标签 terminal git-bash

确切的错误是:

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

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

最佳答案

检查您的/c/Users/adityaRoyal/.bashrc

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

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

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

git/git/contrib/completion/git-prompt.sh中的评论解释这个文件的用途,以及如何正确激活它。

关于terminal - 每当我打开 gitbash 时,我都会收到错误 "bash:/c/Users/aditya royal/git-prompt.sh: No such file or directory",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42048326/

相关文章:

git commit error with sublime text 2

python - 无法在 Heroku 教程中使用 Python 启动工头

bash - 从 git bash 中的 ">"提示恢复

github - 当我将我的代码推送到 github.com 时出现问题,有人从我的电脑上获得了对 github 的主要访问权限,

macos - 在 Mac 和 Linux 上使用终端有什么区别?

reactjs - Yarn 可以列出所有可用的脚本吗?

带有引用库的Java程序: NoClassDefFound

perl - 从@INC 中删除条目

bash - 如何使用带有自定义 bashrc 的 Git bash 运行脚本?

在 OSX 下使用 termios 捕获 ESCAPE 键