Skip to content

Instantly share code, notes, and snippets.

@akitaonrails
Created April 17, 2009 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save akitaonrails/97345 to your computer and use it in GitHub Desktop.
Save akitaonrails/97345 to your computer and use it in GitHub Desktop.
#!/bin/bash
projects=( rails active_merchant activerecord_i18n_defaults adva_cms amqp ansuz apache-upload-progress-module backports braid click-to-globalize clj-garden cucumber cucumber-tmbundle custom_resource_name deprec design_patterns_in_ruby exception_notification git-me-up git_depot globalize2 globalize2-demo grit http_accept_language insoshi isitjruby jrails jruby-rack lighthouse-api merb-internals-handbook mizuho mspec panda paperclip poignant-br prawn rails-template rake-compiler reia rhodes rhosync rquery rspec rspec-rails ruby-benchmark-suite rubyspec sake-tasks saushengine scanty snippets standalone-migrations translate_routes translator twitter vim-git vim-rails webrat )
for repo in ${projects[@]}; do
echo "Updating repo [$repo]"
cd /Users/akitaonrails/Sites/rails/$repo
git checkout master
git pull
done
function fetch {
echo "Updating repo $1 branch $2"
git stash
cd /Users/akitaonrails/Sites/rails/$1
git checkout $2/master
git pull $2 master
git checkout master
git merge $2/master
git push
git stash apply
git stash clear
}
fetch active_scaffold activescaffold
fetch akitaonrails-gitorious gitorious
fetch brazilian-rails tapajos
fetch capistrano jamis
fetch enki xaviershay
fetch github-gem defunkt
fetch merb-book mattetti
fetch radiant radiant
fetch rails-i18n svenfuchs
fetch redmine jeremyf
fetch resource_controller giraffesoft
fetch routing-filter sven
fetch searchlogic_example binarylogic
fetch spree schof
fetch utility-belt giles
fetch whygitisbetter schacon
fetch yarbl olabini
cd /Users/akitaonrails/Sites/rails/jquery
git svn fetch
cd /Users/akitaonrails/Sites/rails/poignant-br
git checkout akitaonrails/master
git rebase master
git push akitaonrails master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment