Skip to content

Instantly share code, notes, and snippets.

@joallard
Created August 28, 2013 16:07
Show Gist options
  • Save joallard/6367818 to your computer and use it in GitHub Desktop.
Save joallard/6367818 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
co = checkout
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
# Show short status with current branch name
st="!f() { br=$(git status | head -1) && echo "${br}" && git status -s; }; f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment