-
Notifications
You must be signed in to change notification settings - Fork 0
Home
João Augusto edited this page Jun 20, 2021
·
1 revision
Existem 2 possíveis prefixos
-
feat/*→ novas funcionalidades -
fix/*→fix
Escreva seu código em sua branch e commite-o. Dê stash em alterações que não devem ser mantidas.
- Entre na sua branch
git checkout feat/my-feature - Dê um pull da master
git pull origin master - Adicione, dê o commit e envie as alterações
git push origin HEAD - Abra um pull request no Github
Os passos são os seguintes:
- Entrar na branch de staging
- Atualizar todas as branches
- Ter certeza de que staging está atualizada
- Trazer suas alterações para staging
- Enviar a branch para o deploy
- Validar com stakeholders/QA
git checkout staging
git fetch --all
git pull origin staging
git pull origin feat/my-feature
git push -u origin stagingSeu pull request foi aprovado e validado com QA/Stakeholders? É hora de dar merge. Cheque se o ambiente possui todas as variáveis de ambientes necessárias no Heroku e se o Checklist pré deploy está preenchido totalmente e acompanhe o deploy :)
- Depois, não se esqueça de deletar a branch na qual foi feito o PR, para manter o repo limpo!
git checkout master && git fetch --all && git pull origin master
git checkout staging && git pull origin staging
git checkout -b staging-backup
git checkout staging
git reset --hard master
git push origin staging --force