I was wondering if anyone had built a script or had a way to list git branches with numbers so that instead of this (preferably in bash)
feature/myusername/ID-1111-my-branch-name
feature/myusername/ID-2222-my-branch-name
feature/myusername/ID-3333-my-branch-name
feature/myusername/ID-4444-my-branch-name
I could get a list like this (or similar)
#1 feature/myusername/ID-1111-my-branch-name
#2 feature/myusername/ID-2222-my-branch-name
#3 feature/myusername/ID-3333-my-branch-name
#4 feature/myusername/ID-4444-my-branch-name
Then checking out a branch would be as easy as
git checkout #4