1
當我做git status
我在顯示器上得到漂亮的顏色。git拉/推支持顏色
但是Git的push/pull/fetch
只是單色的沉悶
我:git config color.ui always
設置爲開,但似乎我沒有得到任何顏色的狀態以外任何東西。
我錯過了什麼嗎?
如果有東西被拒絕,我很想看到一條紅色的信息。也許有一種方法可以將git輸出包裝在一個色彩處理器中?
https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration似乎 不談論推/拉
即我喜歡顏色我的錯誤線爲紅色這裏:
To ssh://<REPO ADDRESS>
! [rejected] develop -> develop (fetch first)
error: failed to push some refs to 'ssh://<REPO ADDRESS>'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
我猜有可能以某種方式把它包在腳本中,如果一行有error:
它會使它變紅?我知道有一個顏色maven「東西」在那裏做一些maven輸出。