Skip to content

Instantly share code, notes, and snippets.

@jbutko
Last active September 23, 2016 12:05
Show Gist options
  • Save jbutko/a58ffa5e009d2030e245d19e48657f9f to your computer and use it in GitHub Desktop.
Save jbutko/a58ffa5e009d2030e245d19e48657f9f to your computer and use it in GitHub Desktop.
My .gitconfig #git
[alias]
s = status
st = status --short --branch
b = branch
c = checkout
cb = "git checkout -b"
d = diff
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
ld = log --pretty=format:"%C(yellow)%h\\ %C(green)%ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short --graph
ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
cm = commit -m
a = add .
p = push
po = push origin
poh = push origin HEAD
pl = pull
plo = pull origin
ploh = pull origin HEAD
f = fetch
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
l = log --graph --abbrev-commit --pretty=oneline origin..HEAD
ac = !git add -A && git commit -m
lsd = log --graph --decorate --pretty=oneline --abbrev-commit --all
my = log --author="xxx" --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
short = shortlog -s -n --all
find = log --pretty=\"format:%Cgreen%H %Cblue%s\" --name-status --grep
rflg = reflog --date=relative --all # historia commitov, pullov a stashov
created = reflog show --date=iso # kedy bola vytvorena branch
laststash = stash show -p # co je v poslednom stashi
team = shortlog -s -n --all # zobrazi pocetov komitov vsetkych developerov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment