Last active
August 29, 2015 14:02
-
-
Save mbenford/e2497c58b057e2432518 to your computer and use it in GitHub Desktop.
Useful Git alias
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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