Fork me on GitHub
.gitconfig tweaks

I stumbled across this stackover flow page discussing cool ways to configure your git experience. I never knew about the output coloring options and it’s changed my life already - for five minutes so far.

I recommend reading the whole page, but I recommend putting the following code at the bottom of your .gitconfig immediately. The screenshot above shows you what you get for it.

[color]
        diff = auto
        status = auto
        branch = auto
        interactive = auto
        ui = true
        pager = true

[color "branch"]
        current = yellow reverse
        local = yellow
        remote = green

[color "diff"]
        meta = yellow bold
        frag = magenta bold
        old = red bold
        new = green bold

[color "status"]
        added = yellow
        changed = green
        untracked = cyan

.gitconfig tweaks

I stumbled across this stackover flow page discussing cool ways to configure your git experience. I never knew about the output coloring options and it’s changed my life already - for five minutes so far.

I recommend reading the whole page, but I recommend putting the following code at the bottom of your .gitconfig immediately. The screenshot above shows you what you get for it.

[color]
        diff = auto
        status = auto
        branch = auto
        interactive = auto
        ui = true
        pager = true

[color "branch"]
        current = yellow reverse
        local = yellow
        remote = green

[color "diff"]
        meta = yellow bold
        frag = magenta bold
        old = red bold
        new = green bold

[color "status"]
        added = yellow
        changed = green
        untracked = cyan
See more
This post has 11 notes
Tagged with code, git,
Posted at 1:09 AM 25 April 2011
  1. messel reblogged this from coderspiel
  2. haru012 reblogged this from j2labs
  3. tudorizer reblogged this from j2labs
  4. coderspiel reblogged this from j2labs and added:
    Another addition
  5. j2labs posted this
Bookmark and Share