Created
June 16, 2020 16:04
-
-
Save alex-codes/9ada8add1ab4329b134b6845d115cb7d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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