Приблизительная схема обновления проектов на Ruby On Rails, взятых с gitlab.com
1. git stash
2. git pull
3. git stash apply
4. merge???
5. bundle
6. RUBY_ENV=production bundle exec rake db:migrate
Подходит для GitLab HQ: https://github.com/gitlabhq/gitlabhq

Link to this post!