```bash
cd ~/path-to-repo
git fetch && git status
git checkout <branch> #e.g. `CORE-4490` or `release/406`
# check latest state
git fetch && git status
# ** IF ** behind then...
# Either
git pull origin <branch>
# or the following may be safer for branches such as master
git reset --hard origin/<branch>
# update with latest master
git fetch
git merge origin/master
# push branch with latest master to origin
git push
# deploy to environment
git push -f origin HEAD:qa<env>
# Check #deploy and CodeShip
# Update the Environments spreadsheet
# **IF** the build fails on CodeShip then add an empty commit → deploy again
git commit --allow-empty -m "Empty Commit"
```