Skip to content

Instantly share code, notes, and snippets.

@ncancelliere
Created October 8, 2015 16:07
Show Gist options
  • Save ncancelliere/790b1a9eb2d08590815d to your computer and use it in GitHub Desktop.
Save ncancelliere/790b1a9eb2d08590815d to your computer and use it in GitHub Desktop.
Git Update All Repos Below CWD
# Pull updates from all git repos below your CWD. single level only
function gupdate() {
for i in */.git;
do ( cd "${i/\/.*/}"; git pull --ff-only);
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment