=======================
- Pull changes from repository
git pull
git checkout <VERSION TO UPGRADE>
- Upgrade composer dependency
php composer.phar install --prefer-dist --no-dev
- Remove old caches and assets
rm -rf app/cache/*
rm -rf web/js/*
rm -rf web/css/*
- Upgrade platform
php app/console oro:platform:update --env=prod --force