Skip to content

Instantly share code, notes, and snippets.

@davidmontoyago
Created June 9, 2015 19:20
Show Gist options
  • Save davidmontoyago/7f60778d3e9e74630124 to your computer and use it in GitHub Desktop.
Save davidmontoyago/7f60778d3e9e74630124 to your computer and use it in GitHub Desktop.
.gitconfig
[core]
safecrlf = true
pager = "less -FX"
excludesFile = .gitignore
editor = vim
[alias]
co = checkout
ci = commit
st = status
br = branch
type = cat-file -t
dump = cat-file -p
fullhashlog = "log --graph --abbrev-commit '--format=format:%H %C(yellow)%ci%Creset %Cgreen%an%Creset | %s'"
w = whatchanged
unpushed = !"PROJ_BRANCH=$(git symbolic-ref HEAD | sed 's|refs/heads/||') && git log origin/$PROJ_BRANCH..HEAD"
[color]
ui = auto
pager = true
[color "status"]
added = yellow
changed = green
untracked = cyan
[format]
pretty = format:'%Cred%h%Creset -%Cblue%an%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment