I have a work assignment that requires me to rebase branches off of a specific branch only I can't remember which ones came off of that branch.
I've tried a few methods including:
- git log --first-parent
- git branch --contains
- git branch --contains develop | grep "^ *feature$"
- git log --graph --decorate
as well as variations of git show branch...
git show-branch -a
| grep '*'
| grep -vgit rev-parse --abbrev-ref HEAD
| head -n1
| sed 's/[^[]*//'
| awk 'match($0, /[[a-zA-Z0-9/-]+]/) { print substr( $0, RSTART+1, RLENGTH-2 )}'
What can I use?