Skip to content

Instantly share code, notes, and snippets.

@peterfleck
peterfleck / README.md
Created February 25, 2019 19:49 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@peterfleck
peterfleck / gitsubmodules.sh
Created October 11, 2019 13:52 — forked from gilbarbara/gitsubmodules.sh
Install git submodules from a .gitmodules file
#!/bin/sh
set -e
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
while read path_key path
do
url_key=$(echo $path_key | sed 's/\.path/.url/')
url=$(git config -f .gitmodules --get "$url_key")
git submodule add $url $path