Skip to content

Instantly share code, notes, and snippets.

@tncbbthositg
Last active March 30, 2016 14:59
Show Gist options
  • Save tncbbthositg/ae4197daf7f7e6aacb29 to your computer and use it in GitHub Desktop.
Save tncbbthositg/ae4197daf7f7e6aacb29 to your computer and use it in GitHub Desktop.
[core]
safecrlf = true
pager = "less -FX"
excludesFile = ~/.gitignore
[alias]
co = checkout
ci = commit
st = status
pr = pull --rebase
br = branch
lf = !"{ git diff --name-only --cached ; git diff --name-only ; git diff --name-only origin/HEAD.. ; } | sort | uniq"
cr = ! git lf | xargs atom
amend = commit --amend -C HEAD
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"
patch = !sh -c 'git diff > $1' -
apply = !sh -c 'patch -p1 < $1' -
stache = ! echo $'░░░░░░░░▄▄▄▄▄░░░░░▄▄▄▄▄░░░░░░░░░\n░░░░░▄█████████▄█████████▄░░░░░░\n░░▄█████████████████████████▄░░░\n████████████████████████████████\n██████████████▀░▀███████████████\n████████████▀░░░░░▀█████████████\n░▀▀▀▀▀▀▀▀▀░░░░░░░░░░░▀▀▀▀▀▀▀▀▀░░'
[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