Skip to content

Instantly share code, notes, and snippets.

@dtoma
Last active March 28, 2019 07:20
Show Gist options
  • Save dtoma/9fb3a7300dcd5b5a23c8371a82b46550 to your computer and use it in GitHub Desktop.
Save dtoma/9fb3a7300dcd5b5a23c8371a82b46550 to your computer and use it in GitHub Desktop.
git config
[alias]
ls = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ll = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat --date=short
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
new = !sh -c 'git log $1@{1}..$1@{0} "$@"'
st = status -s
diff = diff --patience
[user]
email = [email]
name = dtoma
[core]
editor = vim
[pull]
rebase = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment