Created
May 6, 2021 12:54
-
-
Save Dragod/5014c1439ba9a99970f497a1459bd511 to your computer and use it in GitHub Desktop.
Add git lb to list of commands available
This file contains 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] | |
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[$1]++' | head -n 10 | awk -F' ~ HEAD@{' '{printf(\" \\033[33m%s: \\033[37m %s\\033[0m\\n\", substr($2, 1, length($2)-1), $1)}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment