Skip to content

Instantly share code, notes, and snippets.

@rmanly
Last active September 24, 2015 16:02
Show Gist options
  • Save rmanly/f83311dd69b27b52249e to your computer and use it in GitHub Desktop.
Save rmanly/f83311dd69b27b52249e to your computer and use it in GitHub Desktop.
inits a bunch of directories as new git repos
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