Created
June 8, 2012 09:34
-
-
Save misteral/2894718 to your computer and use it in GitHub Desktop.
repostories pull&push
This file contains 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 | |
PREFIX=`date +%F` | |
g=`find ~/projects/ -name .git -maxdepth 2` | |
for repo in ${g[@]} | |
do | |
cd ${repo} | |
cd .. | |
echo `pwd` | |
#git add . | |
#git commit -m "pull on [`date +%F--%H-%M`]" | |
git pull | |
done |
This file contains 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 | |
PREFIX=`date +%F` | |
g=`find ~/projects/ -name .git -maxdepth 2` | |
for repo in ${g[@]} | |
do | |
cd ${repo} | |
cd .. | |
echo `pwd` | |
git add . | |
git commit -m "pull on [`date +%F--%H-%M`]" | |
git push | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment