Git command for selecting a recent branch

Viewed 167

Here's something I want: A git command that shows me the last 5 branches I had checked out, and then prompts me to choose one of them to check it out. This would be helpful to me, since I often switch between a handful of branches, and sometimes I want to check out a branch whose name I forgot.

Does something like this exist? Otherwise I might make a little open-source project for it :)

Edit: I don't want to just see the list of recent branches, I want to have a selector UI in the shell, using the up and down arrow keys, and then pressing Enter to choose the branch and check it out.

0 Answers
Related