Skip to content

Instantly share code, notes, and snippets.

@caktux
caktux / inscreen
Last active August 29, 2015 14:11 — forked from smoser/inscreen
#!/bin/sh
#
# upstream: git://gist.github.com/1019125.git
VERBOSITY=0
LOCK=""
CR="
"
error() { echo "$@" 1>&2; }
#!/bin/bash
# find all .git directories and exec "git pull" on the parent.
find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;