Created
September 15, 2020 16:48
-
-
Save chsienki/f421ed5c6c69fbeb3ee6c8b40601478f to your computer and use it in GitHub Desktop.
Git MRU Branches
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] | |
mru = "!git log -g -n 1000 --format=\"%gd %gs\" --date=relative HEAD@{now} | grep checkout | grep \" to\" | sed 's/HEAD@{\\(.*\\)}.* to\\(.*\\)/(\\1)\\t\\2/' | awk -v OFS=' ' '!x[$NF]++' | head -n 15 | column -ts $'\\t'" -R 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example output: