當我導航到 git 儲存庫的目錄時,我的命令列顯示了很多內容。它看起來像 git-show-branch 的輸出。我嘗試編輯我的 git 設定檔來更改 [show-branch] 的預設值,但無濟於事。我的提示中列出了大約 40 個提交,這確實很麻煩。有人知道如何讓我的提示恢復到預設值嗎?
作業系統是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 提示符號。