Created
February 10, 2016 16:04
-
-
Save vanadium23/1658d1379e08dd488866 to your computer and use it in GitHub Desktop.
My .gitconfig
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] | |
# Shortening aliases | |
co = checkout | |
cob = checkout -b | |
f = fetch -p | |
c = commit | |
p = push | |
ba = branch -a | |
bd = branch -d | |
bD = branch -D | |
dc = diff --cached | |
# Feature improving aliases | |
st = status -sb | |
a = add -p | |
# Complex aliases | |
plog = log --graph --pretty='format:%C(red)%d%C(reset) %C(yellow)%h%C(reset) %ar %C(green)%aN%C(reset) %s' | |
tlog = log --stat --since='1 Day Ago' --graph --pretty=oneline --abbrev-commit --date=relative | |
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
rank = shortlog -sn --no-merges | |
bdm = "!git branch --merged | grep -v '*' | xargs -n 1 git branch -d" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment