Automate Drupal Deployments with Windows Batch Scripts
Drupal distributions can save you time up front and get your project on the ground running. BUT that does come with a cost, you are now locked into relying on that profile to update their modules on a
@ECHO ON
SET "deploytarget=%1"
ECHO Deploying %deploytarget%
REM have to do this to drush since its a .bat and wont break things
SET drush=call drush
ECHO Getting Updated Code ...
git fetch origin --tags
ECHO Purging local modifications...
git reset --hard HEAD
ECHO Checking Out code...
git checkout %1
ECHO Purging local untracked files...
git clean -f -d
ECHO Clearing all caches...
%DRUSH% cc all
ECHO All Done!