Last active
September 24, 2015 16:02
-
-
Save rmanly/f83311dd69b27b52249e to your computer and use it in GitHub Desktop.
inits a bunch of directories as new git repos
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
while read -r -d $'\0' dir; do | |
builtin cd "$dir" | |
git init | |
builtin cd $HOME/src/my | |
done< <(find . -type d -depth 1 -print0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment