Skip to content

Instantly share code, notes, and snippets.

@TMG-MattNewman
Created August 14, 2018 15:05
Show Gist options
  • Save TMG-MattNewman/7a78d500903ef8593095922000d74971 to your computer and use it in GitHub Desktop.
Save TMG-MattNewman/7a78d500903ef8593095922000d74971 to your computer and use it in GitHub Desktop.
alias.co=checkout
alias.ci=commit
alias.st=status
alias.br=branch
alias.hist=log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short
alias.type=cat-file -t
alias.dump=cat-file -p
alias.info=log --name-status
alias.recent=!f() { git branch --sort=committerdate --format="%(committerdate:relative)%09%(refname:short)" | tail -n ${1:-10}; }; f
alias.aliases=!sh -c 'git config --list | grep alias'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment