Skip to content

Instantly share code, notes, and snippets.

@rosterloh
Last active April 13, 2018 10:18
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 rosterloh/d29dbd62f03518a03998fc674ea7c9ee to your computer and use it in GitHub Desktop.
Save rosterloh/d29dbd62f03518a03998fc674ea7c9ee to your computer and use it in GitHub Desktop.
My git aliases
[color]
ui = true
[alias]
gl = log --oneline -n 10
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
co = checkout
upstream-merge = !"git fetch origin -v && git fetch upstream -v && git merge upstream/master && git push"
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = yellow
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment