Skip to content

Instantly share code, notes, and snippets.

View RiordanIX's full-sized avatar
🎯
Focusing

Major Taylor RiordanIX

🎯
Focusing
View GitHub Profile
@RiordanIX
RiordanIX / update_repos.sh
Last active September 4, 2021 00:31
Update all your git repos in the current directory
#!/bin/bash
###############################################################################
#
# Find all of your git repos in the current directory and pull from each one.
#
# We set maxdepth=2 because we assume we're just looking in this directory for
# repos, and not children directories. This can help with speed if there are
# some deeply imbedded directories with many paths or a crazy tree structure.
###############################################################################