2 # Adapted from https://stackoverflow.com/a/13738951/7976758
6 echo "Usage: $0 origin local patterns..." >&2
14 mkdir -p "$local_repo"
18 git remote add origin "$origin"
20 git config core.sparseCheckout true
22 # Loops over remaining args
24 echo "$arg" >> .git/info/sparse-checkout
27 exec git pull origin master