Skip to content

Instantly share code, notes, and snippets.

@desmondmc
Created March 16, 2017 13:58
Show Gist options
  • Save desmondmc/a35808c942b759682f6379df36dac364 to your computer and use it in GitHub Desktop.
Save desmondmc/a35808c942b759682f6379df36dac364 to your computer and use it in GitHub Desktop.
Git Aliases
[alias]
co = checkout
br = branch
st = status
visual = log --graph --full-history --all --pretty=format:%h%x09%d%x20%s
branch-name = !git rev-parse --abbrev-ref HEAD
publish = !git push -u origin $(git branch-name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment