VOOZH about

URL: https://www.javacodegeeks.com/2012/03/git-in-colour.html

⇱ Git in colour - Java Code Geeks


I’ve been using Git for a while now, but only today realized I can have coloured output for diff, grep, branch, show-branch and status, without having to hook in any other external tools (like colordiff, for example).

Here’s my ~/.gitconfig file, which enables colour:

[user]
 name = Nick Boldt
 email = nickboldt (at) gmail.com
 
[giggle]
 main-window-maximized = false
 main-window-geometry = 1324x838+0+24
 main-window-view = HistoryView
 
[core]
 trustctime = false
 branch = auto
 diff = auto
 interactive = auto
 status = auto
 editor = vim
 
[merge]
 tool = vimdiff
 
[receive]
 denyCurrentBranch = warn
 
[branch]
 autosetuprebase = local
 
[color]
 ui = true
 diff = true
 grep = true
 branch = true
 showbranch = true
 status = true
 
[color "diff"]
 plain = normal dim
 meta = yellow dim
 frag = blue bold
 old = magenta
 new = cyan
 whitespace = red reverse
 
[color "status"]
 header = normal dim
 added = yellow
 untracked = magenta
 
[color "branch"]
 current = yellow reverse
 local = yellow
 remote = red

Reference: Git in colour from our JCG partner Nick Boldt at the DivByZero blog.

Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

Tags
Git
πŸ‘ Photo of Nick Boldt
Nick Boldt
March 19th, 2012Last Updated: October 21st, 2012
0 82 1 minute read
Back to top button
Close
wpDiscuz