Skip to content

Instantly share code, notes, and snippets.

@brycetsao
Created August 24, 2020 09:22
Show Gist options
  • Save brycetsao/39d1ba59de298a1f0c85793f34eee457 to your computer and use it in GitHub Desktop.
Save brycetsao/39d1ba59de298a1f0c85793f34eee457 to your computer and use it in GitHub Desktop.
[color]
ui = auto
[push]
default = simple
[alias]
lg = log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
lgf = log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --name-status
lgp = log --color --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --word-diff -p
st = status
a = add
cm = commit -m
p = push
pr = pull --rebase
pp = !git stash && git pull --rebase && git push && git stash apply
ap = add -p
al = add .
co = checkout
rh = reset --hard
d = diff
dw = diff --word-diff
files = "!f() { git diff --name-status $1^ $1; }; f"
[core]
editor = subl
excludesfile = ~/.gitignore_global
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment