Skip to content

Instantly share code, notes, and snippets.

@aramirez-es
Last active March 31, 2016 13:52
Show Gist options
  • Save aramirez-es/3b421b463711b19eaeee to your computer and use it in GitHub Desktop.
Save aramirez-es/3b421b463711b19eaeee to your computer and use it in GitHub Desktop.
git alias
[alias]
st = status --short
hist = log --color --graph --pretty=format:'%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
ls = log --pretty=format:\"%C(yellow)%h\\ %C(green)%ad%C(red)%d\\ %C(reset)%s%C(blue)\\ <%cn>\" --decorate --date=iso
c = config --global
la = !git config --get-regexp 'alias.*' | colrm | sed 's/[ ]/ = /'
alias = !git config --get-regexp 'alias.*' | colrm | sed 's/[ ]/ = /'
co = checkout
cb = checkout -b
ci = commit
cim = commit -m
br = branch
fe = fetch
[color]
ui = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment