Created
December 3, 2014 10:28
-
-
Save ricardobeat/403725cf3562f86e0d15 to your computer and use it in GitHub Desktop.
git aliases
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] | |
lg = log -20 --graph --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn\\ %C(cyan)%cr]" --decorate --abbrev-commit --date=relative | |
who = shortlog -sn | |
dip = diff --patience | |
stat = status -sb | |
snapshot = !git stash save "snapshot: $(date)" && git stash apply "stash@{0}" | |
word = diff --word-diff=color | |
up = "!git fetch --all -p && git rebase @{u}" | |
mine = "!git lg --author=\"$(git config user.name)\"" | |
aliases = "!git config --list | grep alias | cut -c 7- | sed 's/=//' | column -t -s ''" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment