Skip to content

Instantly share code, notes, and snippets.

@jsylvanus
Created December 19, 2014 18:25
Show Gist options
  • Select an option

  • Save jsylvanus/933d16ba48af97af166a to your computer and use it in GitHub Desktop.

Select an option

Save jsylvanus/933d16ba48af97af166a to your computer and use it in GitHub Desktop.
Git config aliases
[alias]
meatloaf = archive -o meatloaf.zip HEAD
lsl = log --oneline --decorate --graph --all
ds = diff --staged
st = status -sb
fup = log --since '1 day ago' --oneline --author james@bigseadesign.com
rhh = reset --hard HEAD
hist = log --color --pretty=format:\"%C(yellow)%h%C(reset) %s%C(bold red)%d%C(reset) %C(green)%ad%C(reset) %C(blue)[%an]%C(reset)\" --relative-date --decorate
# basic
cp = cherry-pick
cl = clone
ci = commit
co = checkout
br = branch
diff = diff --word-diff
changed = diff-tree --no-commit-id --name-only -r
# stash
sl = stash list
sa = stash apply
ss = stash save
# logs
l = log
lh = log --graph
la = !git lh --date-order --all 2> /dev/null
lb = log --graph --simplify-by-decoration
lba = !git lb --all
h = !git --no-pager log --graph -n 15
a = !git --no-pager la -n 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment