How can I get a list of Git branches that I’ve recently checked out?

Summary: You can use Git’s reflog to show recent movements in order of checkout: git reflog Script: Here’s a script you can download and use via git recent from inside any Git repository: https://gist.github.com/jordan-brough/48e2803c0ffa6dc2e0bd Usage: $ (master) git recent -n 5 1) master 4) deleted-branch 2) stable 5) improve-everything 3) fun Choose a branch: 2 …

Read more