Jis grįžta su nauju hitu! Git turi opciją –color, kuri naudojama su kai kuriomis komandomis (pvz. git-diff). Tačiau pagal nutylėjimą ji yra išjungta t.y. norint rodyti spalvas visad reik prirašinėt –color. Įjungti galima labai paprastai – į .git/config failą įrašius šias eilutes:
[color] branch = auto diff = auto status = auto [color "branch"] current = yellow reverse local = yellow remote = green [color "diff"] meta = yellow frag = magenta old = red new = green [color "status"] added = yellow changed = green untracked = cyan |
Gyvenimas iškart gražesnis.
{ 3 comments… read them below or add one }
Oho, šimtą metų negirdėtas. Naudingas dalykas. Dar daugiau tobulybių GIT’ui gali rasti čia: https://github.com/ReekenX/ubuntu-home-configs/blob/master/.gitconfig
Taip, atsibudau iš letargo miego :-)
Arba tiesiog:
git config –global color.ui true ;)