Skip to content

Instantly share code, notes, and snippets.

@bradobro
Last active September 24, 2021 14:58
Show Gist options
  • Save bradobro/3b194e17626deadc87cdd3854e06c1bf to your computer and use it in GitHub Desktop.
Save bradobro/3b194e17626deadc87cdd3854e06c1bf to your computer and use it in GitHub Desktop.
Short utilities for git and others in fish
# Create a list of repos in the directory
ls -d */.git > repos.txt
# remove the origin, (fetch) grep only fetch
# (manual)
# clone the repos from a repos list file
for r in (cat repos.txt | sort | uniq);
echo $r; git clone $r
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment