Skip to content

Instantly share code, notes, and snippets.

@Miliox
Last active January 26, 2016 02:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Miliox/4035587 to your computer and use it in GitHub Desktop.
Save Miliox/4035587 to your computer and use it in GitHub Desktop.
MyGit Config
[core]
whitespace = trailing-space,space-before-tab
[alias]
addp = add --patch
br = branch
ci = commit --signoff
co = checkout
di = diff
dw = diff --word-diff
re = rebase
st = status --short --branch
mg = merge --no-ff
# Log & Diffs
k = !gitk
l = log --oneline --decorate --graph
diffstat = diff --stat -r
changes = diff --name-status -r
timeline = log --graph --branches --pretty=oneline --decorate
# More Info
who = shortlog --summary --
whatis = show --summary --date=short --pretty='tformat:%h (%s, %ad)'
whois = "!sh -c \
'git log -i -1 --pretty=\"format:%an <%ae>\n\" \
--author=\"$1\"' -"
undo = reset --hard
fixup = commit --amend -C HEAD
prune-all = !git remote | xargs -n 1 git remote prune
prune-preview = remote prune --no-dry
ignored-files = ls-files --exclude-standard --ignored --others
modified-files = ls-files --modified
untracked-files = ls-files --exclude-standard --others
list-cmds = config --get-regexp alias
[apply]
whitespace = fix
[color]
status = auto
diff = auto
branch = auto
interactive = auto
ui = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment