Skip to content

Instantly share code, notes, and snippets.

@erogol
Created February 16, 2022 15:20
Embed
What would you like to do?
git show-branch \
| sed "s/].*//" \
| grep "\*" \
| grep -v "$(git rev-parse --abbrev-ref HEAD)" \
| head -n1 \
| sed "s/^.*\[//"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment