Skip to content

Instantly share code, notes, and snippets.

@mledoze
Created September 13, 2019 07:48
Show Gist options
  • Save mledoze/9f603af160045aaf47e2db2c850fe8a7 to your computer and use it in GitHub Desktop.
Save mledoze/9f603af160045aaf47e2db2c850fe8a7 to your computer and use it in GitHub Desktop.
[user]
name = Mohammed Le Doze
email = [email protected]
[alias]
lga = log --decorate --stat --graph --pretty=format:\"%d %Cgreen%h%Creset (%ar - %Cred%an%Creset), %s%n\"
lg = log --decorate --graph --format='%Cgreen%h%Creset %ad %C(cyan)%an%Creset - %s%C(red)%d%Creset' --date=short
l = log --graph --pretty=format:'%Cred%h%Creset - %C(bold blue)%an%Creset -%C(red)%d%Creset %s %Cgreen(%cr)' --abbrev-commit --all
stat = shortlog -sne
s = status -s
st = status
fa = fetch --all --prune --tags --force
co = checkout
pl = pull
ps = push
b = branch
sm = submodule
spl = !git pull && git submodule sync --recursive && git submodule update --init --recursive
up = !git fetch --all --prune --tags --force && git pull
del = !sh -c 'git branch -D $1 && git push origin --delete $1' --
[diff]
tool = vimdiff
[color]
ui = auto
[color "diff"]
meta = yellow bold
frag = magenta bold # line info
old = red # deletions
new = green # additions
[color "status"]
added = yellow
changed = green
untracked = cyan
[push]
default = current
[pull]
default = current
[core]
ignoreCase = false
preloadindex = true
fscache = true
[credential]
helper = wincred
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment