Skip to content

Instantly share code, notes, and snippets.

@michaldudak
Last active June 22, 2021 09:52
Show Gist options
  • Save michaldudak/74e9e143c6d5133b1711e36278c477ba to your computer and use it in GitHub Desktop.
Save michaldudak/74e9e143c6d5133b1711e36278c477ba to your computer and use it in GitHub Desktop.
My git aliases
[alias]
co = checkout
cob = checkout -b
br = branch
cm = commit -m
cf = commit --fixup
cfh = commmit --fixup HEAD
fp = fetch --prune
fap = fetch --all --prune
fo = !sh -c 'git fetch origin $1:$1' -
fu = !sh -c 'git fetch upstream $1:$1' -
st = status
s = status -sb
pu = push -u origin HEAD
tree = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset%C(yellow)%d%Creset %Cgreen(%cr)%Creset%n%w(80,8,8)%s' --graph
commits = log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment