Skip to content

Instantly share code, notes, and snippets.

@mcls
Created February 17, 2014 15:34
Show Gist options
  • Save mcls/9052736 to your computer and use it in GitHub Desktop.
Save mcls/9052736 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
st = status -bs
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
b = branch -v
co = checkout
undo = reset --soft HEAD^
cm = commit -v
today = log --since=midnight --author='Maarten Claes' --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment