[GITHUB] Reset Branch - fourslickz/notes GitHub Wiki
on local computer
cd ~/CODE/repository
git branch -D dev
git checkout -b dev master
git push -u origin +dev
git branch -D staging
git checkout -b staging master
git push -u origin +staging
git branch -D production
git checkout -b production master
git push -u origin +production
on server dev
cd ~/cicd/dev/repository
git fetch
git reset origin/dev --hard
git push -u bare-repo-dev +dev
on server staging
cd ~/cicd/staging/repository
git fetch
git reset origin/staging --hard
git push -u bare-repo-staging +staging