Skip to content

Instantly share code, notes, and snippets.

@andyg1
Created December 16, 2016 10:51
Show Gist options
  • Save andyg1/f63f56c1ef89b08207bdeb0daed18756 to your computer and use it in GitHub Desktop.
Save andyg1/f63f56c1ef89b08207bdeb0daed18756 to your computer and use it in GitHub Desktop.
Useful Git Aliases
alias gb='git branch'
alias gg='git status'
alias gitfiles='git diff-tree --no-commit-id --name-only -r '
alias gitlog='git log --graph --abbrev-commit --decorate --format=format:'\''%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'\'''\'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'\'' --all'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment