#!/bin/bash

FOLDER=dev.cms.cse-invent.com
BRANCH_ORIGIN=dev
BRANCH=dev

sudo chown www-data:www-data /var/www -R
cd /var/www
cd ${FOLDER}
git checkout ${BRANCH}
git pull origin ${BRANCH_ORIGIN}
git push