Created
February 17, 2009 22:48
-
-
Save bantic/66042 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env ruby | |
github_dirs = [ | |
"/Users/cory/Library/Application Support/Cultured Code", | |
"/Users/cory/Downloads/moinmoin-wiki-db" | |
] | |
github_dirs.each do |dir| | |
puts "Syncing #{dir}" | |
Dir.chdir(dir) | |
`git add .` | |
`git commit -am "updating"` | |
`git push origin master` | |
`git pull origin master` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment