
Git リポジトリのディレクトリに移動すると、コマンド ラインにたくさんの情報が表示されます。git-show-branch の出力のように見えます。git 構成ファイルを編集して [show-branch] のデフォルトを変更しようとしましたが、うまくいきませんでした。プロンプトに約 40 件のコミットがリストされ、非常に煩わしくなっています。プロンプトをデフォルトに戻す方法を誰か知っていますか?
OSはRHELです。
私のプロンプトは次のようになります (## 機密情報を置き換えます):
on ! [backup-master] This is the fixes I need!
! [checkout] Added ## and ##. This commit may be garbage
* [master] Merge branch 'master' of /home/path/path
! [oldRval] Added top level cells ## and ##
----
- [master] Merge branch 'master' of /home/path/path
* [master^2] Changes to ## and level ##. Modified ## boost architecture
* [master^2^] Changes to all ##, some ##, many ##
* [master^2~2] many schematic changes. Updated ##. Updated ##
* [master~2] placement update done. ## done update and ongoing ## errors.
* [master~3] ongoing block
* [master~4] Updates to ##. Updated to ## for cleaner layout.
* [master~5^2] final fixes on ##. Separated ##.
* [master~5^2^] This is the fixes I need
* [master~6] Updated ##, ## and some ## with ## versions
+ [backup-master] this is the fixes I need
++* [checkout] Added XX and ## . This commit may be garbage
++*+ [oldRval] Added top level cells ## and ##
答え1
正直、なぜうまくいったのかは分かりませんが、「bash」コマンドを入力するとプロンプトが通常に戻りました。何らかの git プロンプトになっていたに違いありません。