Skip to content

Instantly share code, notes, and snippets.

@alex-codes
Created June 16, 2020 16:04
Show Gist options
  • Save alex-codes/9ada8add1ab4329b134b6845d115cb7d to your computer and use it in GitHub Desktop.
Save alex-codes/9ada8add1ab4329b134b6845d115cb7d to your computer and use it in GitHub Desktop.
[alias]
bu = "!sh -c 'git checkout -b \"$0\" && git push -u origin \"$0\"'"
cb = checkout -b
recent = for-each-ref --count=18 --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(color:cyan)%(authorname)%(color:reset) (%(color:green)%(committerdate:relative)%(color:reset)) - %(contents:subject)'
lp = log --pretty=format:'%C(yellow)%h%C(reset) - %C(cyan)%an%C(reset) (%C(green)%cr%C(reset))%C(red)%d%C(reset) - %s'
rh = reset head --hard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment