Skip to content

Instantly share code, notes, and snippets.

@hoodoer
Created December 10, 2019 09:26
Show Gist options
  • Save hoodoer/264e784f5a28cc1443f9775cc313dcc8 to your computer and use it in GitHub Desktop.
Save hoodoer/264e784f5a28cc1443f9775cc313dcc8 to your computer and use it in GitHub Desktop.
Script to update all git projects in a directory. nice for updating backups once you've cloned all the repos you want into a directory.
#!/bin/bash
for i in `ls -d */`; do cd $i && git pull && cd ..; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment