LoginSignup
2
1

More than 3 years have passed since last update.

__git_ps1: command not found

Posted at

事象 : shと打ったらなんか言われるようになった。

  • 環境 : Windows10 Pro バージョン1909
# なんか言われた
ponsuke@tarou MINGW64 /c/git/git-repo (develop)
$ sh
sh: __git_ps1: command not found
# 何しても言われるようになった・・・ブランチ名が表示されなくなってしまった・・・
ponsuke@tarou MINGW64 /c/git/git-repo
$ cd .git
sh: __git_ps1: command not found

原因 : git_ps1コマンドが消失したから?

参考 : bash_completionで「-bash: __git_ps1: command not found」となった時の対処法 - くりにっき

対応 : Git Bashを再起動する

その画面を閉じてまた起動すれば大丈夫!

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1