May 4, 2020

gitconfig

[user]
    name = MY NAME
    email = MY EMAIL
[core]
    editor = vim
    whitespace = cr-at-eol
[merge]
    tool = vimdiff
[alias]
    vimdiff = difftool
    st = status -sb
    ci = commit -a
    br = branch
    co = checkout
    df = diff --ignore-space-at-eol -w -b
    dc = diff --cached
    dl = diff --name-only
    last = log -1 HEAD --stat
    lg = log --stat
    lb = log --graph --oneline --decorate --date=short --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=relative master..
    tr = log --graph --oneline --decorate --all --date=short --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=relative
    tr1 = log --graph --oneline --decorate --date=short --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s'
    h =   log --color --date=short --pretty=format:\"%C(yellow)%h%C(reset) %s%C(bold red)%d%C(reset) %C(green)%ad%C(reset) %C(blue)[%an]%C(reset)\"  --decorate
    who = shortlog -s --
    out = log origin/master..master
    in = "!git fetch; git log master..origin/master"
    unstage = reset HEAD --
    root="rev-parse --show-toplevel"
[diff]
    renames = copy
    tool = vimdiff
[difftool "vimdiff"]
    cmd = "vim -d" "$LOCAL" "$REMOTE"
    prompt = false
[push]
    default = simple
[sendpack]
    sideband = false
[pager]
    status = true
[fetch]
    prune = true

No comments:

Post a Comment