Skip to content

Instantly share code, notes, and snippets.

@gnthibault
Created June 13, 2024 09:55
Show Gist options
  • Save gnthibault/1674d2f9a9c58f26b1014e5351c3e447 to your computer and use it in GitHub Desktop.
Save gnthibault/1674d2f9a9c58f26b1014e5351c3e447 to your computer and use it in GitHub Desktop.
Search branch name is all subdirectories. Espace specific bash color character from ls
for i in $(ls -d */); do echo "$i"; cd $(echo "$(pwd)/$i" | sed -e $'s/\x1b\[[0-9;]*m//g'); git branch | grep BRANCH_NAME_TO_SEARCH ;cd ..; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment