Skip to content

Instantly share code, notes, and snippets.

@zookee1
Last active November 20, 2017 08:57
Show Gist options
  • Save zookee1/5ba0a1e6cdd8a0b48bc3c334978ddef3 to your computer and use it in GitHub Desktop.
Save zookee1/5ba0a1e6cdd8a0b48bc3c334978ddef3 to your computer and use it in GitHub Desktop.
.gitconfig
[core]
excludesfile = /home/zookee1/.gitignore_global
[user]
name = zookee one
email = [email protected]
[push]
default = simple
[http]
[https]
[alias]
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
lc = log --graph --all --decorate --stat --date=iso
unstage = reset --soft HEAD^
co = checkout
cod = checkout develop
st = status -s
aa = add -A .
cm = commit -m
p = pull
la = "!git config -l | grep alias | cut -c 7-"
highscore = shortlog -sn --all --no-merges
recent = for-each-ref --count=10 --sort=-committerdate refs/heads/ --format="%(refname:short)"
cleanup = git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment