Skip to content

Instantly share code, notes, and snippets.

@mclarke47
Created August 25, 2015 09:33
Show Gist options
  • Save mclarke47/17d56ff59d16628df0fe to your computer and use it in GitHub Desktop.
Save mclarke47/17d56ff59d16628df0fe to your computer and use it in GitHub Desktop.
#!/bin/bash
find . -type d -maxdepth 1 \( ! -name . \) -exec bash -c "echo {}; cd {} && git $1" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment