Git Wiki
Advertisement

inial basic git config[]

on buildhost 4

git config --global user.name '<user name>‘
git config --global user.email '<user>@work.com‘
Check setting
git config user.name
git config user.email

git config --global color.status auto
git config --global color.branch auto
cat ~/.gitconfig

here is my current ~.gitconfig file

[user]
        name = Robert Berger
        email = me@work.com
[color]
        status = auto
        branch = auto
        ui     = true
[diff]
        color = auto
[pager]
        color = true
[status]
        color = auto
[color "branch"]
        current = yellow reverse
        local = yellow
        remote = green
[color "diff"]
        meta = yellow bold
        frag = magenta bold
        old = red bold
        new = green bold
        whitespace = red reverse
[color "status"]
        added = yellow
        changed = green
        untracked = cyan
[core]
    whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
[alias]
    st = status
    ci = commit
    br = branch
    co = checkout
    df = diff
    lg = log -p

For this to work you need to do the following in your profile:

     export LESS="-erX"

which I did globally on builhost4

Advertisement