Skip to content

Instantly share code, notes, and snippets.

@bantic
Created February 17, 2009 22:48
Show Gist options
  • Save bantic/66042 to your computer and use it in GitHub Desktop.
Save bantic/66042 to your computer and use it in GitHub Desktop.
#!/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