Could the two lines be merged, using a single `find -name .git -exec rm -rf {} \;` ?