Skip to content

Instantly share code, notes, and snippets.

@kunicmarko20
Last active January 22, 2025 09:20
Select branch to checkout from a list of recent ones.
#!/bin/bash
select branch in $(git branch --sort=-committerdate | head -n6 | grep -v "*")
do
git checkout $branch
exit
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment