Skip to content

Instantly share code, notes, and snippets.

@GoZOo
Last active March 16, 2017 10:45
Show Gist options
  • Select an option

  • Save GoZOo/6ce1ef0e40f75dd2dd19 to your computer and use it in GitHub Desktop.

Select an option

Save GoZOo/6ce1ef0e40f75dd2dd19 to your computer and use it in GitHub Desktop.
Gitconfig
[core]
excludesfile = ~/.gitignore_global
autocrlf = input
[alias]
# Diff
d = diff --patch-with-stat
# Diff staged
ds = diff --staged --patch-with-stat
# Undo a `git push`
undopush = push -f origin HEAD^:master
co = checkout
br = branch
st = status
a = add
ci = commit
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%cn>%Creset %C(magenta)(© %ar <%an>)%Creset' --abbrev-commit
[color]
ui = true
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[merge]
# Include summaries of merged commits in newly created merge commit messages
log = true
[format]
pretty = oneline
[push]
default = simple
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment