Created
November 3, 2011 16:54
-
-
Save roblevintennis/1337035 to your computer and use it in GitHub Desktop.
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
[user] | |
name = My Name | |
email = me@gradecam.com | |
[color] | |
branch = auto | |
status = auto | |
diff = auto | |
interactive = auto | |
[github] | |
user = robin | |
[alias] | |
sb = show-branch | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
cp = cherry-pick | |
staged = diff --cached | |
rb = rebase | |
rbc = rebase --continue | |
rbs = rebase --skip | |
rl = reflog | |
rs = remote show | |
rt = remote | |
ru = remote update | |
rp = remote prune | |
sm = submodule | |
rshow = remote show origin | |
last = !"clear;git --no-pager log -1" | |
rlog = reflog --abbrev --decorate | |
sref = show-ref --abbrev | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
slog = git shortlog -s -n | |
peeps = !git log --pretty=format:%aN | sort | uniq -c | sort -rn | |
ls = ls-files | |
lstat = log --relative --abbrev-commit --date=local --pretty=format:'%C(white)%h %C(cyan)%cr %C(green)by %cn %Creset%n%C(yellow)%cd%n%s' --stat | |
lost = !"git fsck | awk '/dangling commit/ {print $3}' | git show --format='SHA1: %C(yellow)%h%Creset %f' --stdin | awk '/SHA1/ {sub(\"SHA1: \", \"\"); print}'" | |
heads = !"git log origin/master.. --format='%Cred%h%Creset;%C(yellow)%an%Creset;%H;%Cblue%f%Creset' | git name-rev --stdin --always --name-only | column -t -s';'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment