Skip to content

Instantly share code, notes, and snippets.

@TJRoger
Created September 14, 2016 07:39
Show Gist options
  • Save TJRoger/d5eed61490f765c51da779ca27fcd715 to your computer and use it in GitHub Desktop.
Save TJRoger/d5eed61490f765c51da779ca27fcd715 to your computer and use it in GitHub Desktop.
update repo automatically
#!/bin/bash
for d in */ ; do
echo 'updated '$d' at '`date +%Y-%m-%d\ %H:%M:%S` >> ~/update.log
cd $d && (git pull origin master || ``) && cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment