Skip to content

Instantly share code, notes, and snippets.

@mbenford
Last active August 29, 2015 14:02
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 mbenford/e2497c58b057e2432518 to your computer and use it in GitHub Desktop.
Save mbenford/e2497c58b057e2432518 to your computer and use it in GitHub Desktop.
Useful Git alias
[alias]
aa = add -A
co = checkout
st = status
ci = commit
br = branch
me = merge
rs = reset
rb = rebase
df = diff
lg = log
unstage = reset HEAD --
graph = !git lsc --graph --all
lsc = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%C(cyan)\\ [%cn]" --decorate
lsf = !git lsc --name-status
lsd = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%C(cyan)\\ [%cn]" --decorate --date=short
alias = !git config --global --list | grep alias
nb = checkout -b
cp = cherry-pick
mt = mergetool
dt = difftool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment