Git : fichier de configuration basique

Boris HUISGEN September 26, 2014

développement git outils

$ vim ~/.gitconfig

[user]
    name = <USERNAME>
    email = <EMAIL>

[color]
        branch = auto
        diff = auto
        status = auto

[alias]
    s = status --short
    d = diff
    dw = diff --word-diff
    l = log -1
    l1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
    l2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n''          %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all

[push]
    default = simple

[pull]
    rebase = true

[core]
    excludesfile = ~/.gitignore

See also

Apache : proxy avec support SSL
Read more
zabbix-monitor : moniteur web d’alertes Zabbix
Read more
blog-server : serveur REST API pour un blog full JS
Read more