Created
December 10, 2019 09:26
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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