Skip to content

Instantly share code, notes, and snippets.

@jrenggli
Created March 3, 2014 22:26
Show Gist options
  • Save jrenggli/9335957 to your computer and use it in GitHub Desktop.
Save jrenggli/9335957 to your computer and use it in GitHub Desktop.
Create shell commands from gitmodules file
Search: \[submodule ".*/([^\/]*)"\]\n\tpath = (.*)\n\turl = (.*)
Replace: git submodule add $3 $2\ngit commit -m "[TASK] Add puppet module $1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment