终端中出现"bash:__ gitdir:command not found"错误

Jos*_*son 2 git bash terminal

每当我在命令窗口工作时,我得到错误:工作线正上方的"bash:__ gitdir:command not found"(换句话说,在任何命令之后,在它提示新的命令之前).

有什么想法可以提出这个问题吗?

Mik*_*itz 6

__gitdir是一个由git-completion.bash脚本提供的函数,它允许bash在键入git命令时自动完成.您是否__gitdir在.bashrc没有采购的情况下使用您的或其他个人资料/登录脚本git-completion.bash?