Created
August 31, 2021 19:29
-
-
Save mochsner/23f5aa87481099aff603927b4dc8832b to your computer and use it in GitHub Desktop.
Git Bash: Get Branch of All Subdirs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Taken from: https://stackoverflow.com/questions/49281685/ | |
for i in */; do \ | |
(cd $i && echo -n "${i}: " && git rev-parse --abbrev-ref HEAD); \ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment